| An Introduction to GCC - for the GNU compilers gcc and g++ by Brian J. Gough, foreword by Richard M. Stallman Paperback (6"x9"), 144 pages ISBN 0954161793 RRP £12.95 ($19.95) "Answers common questions and provides many useful hints" --- Dr. Gerald Pfeifer (SUSE) -- Technical Editor Get a printed copy>>> |
3.6 Recommended warning options
The following options are a good choice for finding problems in C and C++ programs:
$ gcc -ansi -pedantic -Wall -W -Wconversion
-Wshadow -Wcast-qual -Wwrite-strings
While this list is not exhaustive, regular use of these options will catch many common errors.
| ISBN 0954161793 | An Introduction to GCC - for the GNU compilers gcc and g++ | See the print edition |