list.h:1122: warning: `list>::node_alloc_' will be initialized after list.h:1117: warning: ` allocator<LogOutput*> list<LogOutput*, allocator<LogOutput*> >::alloc_'
Best Answer :
Make sure the members appear in the initializer list in the same order as they appear in the class
Class C { int a; int b; C():b(1),a(2){} //warning, should be C():a(2),b(1) }
or you can turn -Wno-reorder
Another Answer:
For those using QT having this error, add this to .pro file
QMAKE_CXXFLAGS_WARN_ON += -Wno-reorder
原文链接: