Author Topic: GTK 3 Warnings  (Read 155 times)

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 100
    • My Site
GTK 3 Warnings
« 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 ?
Code::Blocks SVN 11925
OS : Ubuntu LTS

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12219
    • Travis build status
Re: GTK 3 Warnings
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]