?? return-type-2.c
字號:
/* Bogus warnings claiming we fall off the end of a non-void function. By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/27/2000. *//* { dg-do compile } *//* { dg-options "-O2 -Wreturn-type" } */extern void abort (void) __attribute__ ((__noreturn__));intfoo1 (int i){ if (i) return i; abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */__inline__ intfoo2 (int i){ if (i) return i; abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */static intfoo3 (int i){ if (i) return i; abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */static __inline__ intfoo4 (int i){ if (i) return i; abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */int bar (int i){ return foo1 (i) + foo2 (i) + foo3 (i) + foo4 (i);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -