declaration of variables?

Andrew Bennetts andrew-pythonlist at puzzling.org
Mon Feb 17 00:56:30 CET 2003


On Sun, Feb 16, 2003 at 06:37:59PM -0500, Jp Calderone wrote:
> 
>     exarkun:~/projects/test$ cat warnings.c
> 
>     int main() {
>        int x;
>        return 0;
>     }
>     exarkun:~/projects/test$ gcc -c warnings.c -o warnings
>     warnings.c: In function 
ain':
>     warnings.c:3: warning: unused variable 
> 
> 
>   Maybe if it generated errors, instead... ;)

gcc -Werror  :)

-Andrew.






More information about the Python-list mailing list