LWN.net Logo

Buggifying critical core modules

Buggifying critical core modules

Posted Mar 20, 2008 18:34 UTC (Thu) by dododge (subscriber, #2870)
In reply to: Buggifying critical core modules by dw
Parent article: Who maintains dpkg?

The lesson being: when you run "gcc" with no options, it does not compile the C language, but
rather the "GNU C" language.  GNU C bears a strong resemblance to C but has many additional
and alternate semantics.

If you're trying to write portable code and you want gcc to follow Standard C rules, you have
to explicitly request it.  I normally use, at a minimum:

-std=c99 -pedantic -Wall -Wextra


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.