views:

674

answers:

2

I am getting a lot of these warnings from 3rd party code that I cannot modify. Is there a way to disable this warning or at least disable it for certain areas (like #pragma push/pop in VC++)?

Example:

list.h:1122: warning: `list<LogOutput*, allocator<LogOutput*> >::node_alloc_' will be initialized after 
list.h:1117: warning:   `allocator<LogOutput*> list<LogOutput*, allocator<LogOutput*> >::alloc_'
+5  A: 

You can disable it with -Wno-reorder.

Lukáš Lalinský
+2  A: 

use -Wno-reorder (man gcc is your friend :) )

LaszloG
Wow, you found a new way to say RT_M: MIYF (man is your friend)If you don't mind, I am going to use it :)
Oren S
Rather too close to an acronym that would not be acceptable at work for me.
Martin York