📄 wunreachable-code-1.c
字号:
/* PR17544 Incorrect -Wunreachable-code warning Origin: sebor@roguewave.com G++ appends a "return 0;" when finishing a function, but it was not given a source location. The gimplifier thinks a return statement needs a locus so it would add one, making the compiler generated code visible to the unreachable code warning. *//* { dg-do compile } *//* { dg-options "-O -Wunreachable-code" } */intmain (int argc, char *argv[]){ const char* const s = argc < 2 ? "" : argv [1]; int i = 0; do { ++i; } while (i < s [0]); return i;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -