tags:

views:

68

answers:

1

gcc 4.4.2

I am using these compile options in my Makefile. And my application links to several 3rd party libraries.

-ggdb -Wall -Wextra -pedantic -std=c89

However, the pedantic is displaying many warning for the 3rd party libraries. I am wondering how can I avoid displaying these warning and still keep my compiler option pedantic.

The reason I am asking this is that the 3rd party libraries is displaying nearly 50 warning. However, I would still like to compile my source code with -pedantic.

+2  A: 

Maybe the GCC Manual on diagnostic pragmas will help you.

elder_george