As you can see below, clang is giving me the same warning twice - once in the implementation file and one in the main file where I do run the program. Is there anyway to stop this happening? I have the standard header guard in device.h
and I'm not sure how to get rid of this.
In file included from device.cpp:1:
./device.h:35:4: warning: field 'm_new_depth_frame' will be initialized after
field 'depthMat' [-Wreorder]
m_new_depth_frame(false), depthMat(Size(640,480)...
^
1 warning generated.
In file included from kinect_test.cpp:3:
./device.h:35:4: warning: field 'm_new_depth_frame' will be initialized after
field 'depthMat' [-Wreorder]
m_new_depth_frame(false), depthMat(Size(640,480)...
^
1 warning generated.
To clarify, this warning is fine by me (its from a third party library) - I just feel like there is no need to be warned twice.