Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ordak on January 20, 2020, 02:02:46 pm

Title: GTK 3 Warnings
Post by: ordak on January 20, 2020, 02:02:46 pm
Hi,

I want to compile a temp project in GTK3 using static library. When I use a global compiler setting I disable all warnings, project compiles in a few seconds. But when I turn some warnings like -Wall I seem to get many warnings from GTK3 code too. How can I get warnings from my temp project only , not any from GTK3 code ?
Title: Re: GTK 3 Warnings
Post by: oBFusCATed on January 20, 2020, 07:34:30 pm
Read about -isystem (if you're using gcc/clang) and then modify the output of pkg-config to include the correct flags.
I've not tried it, it might not work.
The other option is to use pragmas to disable specific warnings before including gtk headers.