__attribute__ 你知多少? - astwish - 博客園

__attribute__ 你知多少? - astwish - 博客園

瀏覽:551
日期:2025-06-09
編譯顯示的輸出資訊為: $gcc –Wall –c noreturn.c noreturn.c: In function `test': noreturn.c:12: warning: control reaches end of non-void function 警告資訊也很好理解,因為你定義了一個有返回值的函數test卻有可能沒有返回值,程序當然不知道怎麼辦了!...看更多