keil提示:statement is unreachable

今天在用keil写程序时 编译出现statement is unreachable  的警告,仔细看了下程序  发现  我在  return 后面写了句代码,statement is unreachable  的意思就是说 执行不到return后面的语句  如    

           

   char c; 
              c=1; 
              if(c)

                     while(1){

      ;;;} 
               return(0);

这里return 就不会被执行

 

posted on 2015-06-27 10:22  天奕  阅读(1318)  评论(0编辑  收藏  举报

导航