1 <qandaentry id="gcc-warnings">
2 <question><para>Are compiler warnings from GCC bad?</para></question>
3 <answer><para>Short answer: no.
5 <answer><para>Long answer: probably, but only to someone
6 working on the package you're trying to compile. Mostly,
7 everything will be fine unless make quits with an error.
9 <para>Here's an example:
11 <screen>sk ~/tmp $ cat > Makefile
14 sk ~/tmp $ cat > main.c
15 void main() { exit(0); }
18 <emphasis role="strong">main.c: In function `main':
19 main.c:1: warning: return type of `main' is not `int'</emphasis>
20 sk ~/tmp $ ######## that worked ########
22 sk ~/tmp $ cat > main.c
23 int main() { e<emphasis role="strong">xx</emphasis>it(0) }
26 <emphasis role="strong">main.c: In function `main':
27 main.c:1: parse error before `}'
28 make: *** [main] Error 1</emphasis>
29 sk ~/tmp $ ######## that failed ########