~/Detours/src/disasm.cpp: In constructor ‘CDetourDis::CDetourDis(BYTE**, LONG*)’:
~/Detours/src/disasm.cpp:301:25: warning: ‘CDetourDis::m_bF3’ will be initialized after [-Wreorder]
301 | BOOL m_bF3; // x86 only
| ^~~~~
~/Detours/src/disasm.cpp:298:25: warning: ‘BOOL CDetourDis::m_bVex’ [-Wreorder]
298 | BOOL m_bVex;
| ^~~~~~
~/detours/disasm.cpp:326:1: warning: when initialized here [-Wreorder]
326 | CDetourDis::CDetourDis(_Out_opt_ PBYTE *ppbTarget, _Out_opt_ LONG *plExtra) :
| ^~~~~~~~~~
In file included from ~/Detours/src/disolx86.cpp:2:
~/Detours/src/disasm.cpp: In constructor ‘CDetourDisX86::CDetourDisX86(BYTE**, LONG*)’:
~/Detours/src/disasm.cpp:301:25: warning: ‘CDetourDisX86::m_bF3’ will be initialized after [-Wreorder]
301 | BOOL m_bF3; // x86 only
| ^~~~~
~/Detours/src/disasm.cpp:298:25: warning: ‘BOOL CDetourDisX86::m_bVex’ [-Wreorder]
298 | BOOL m_bVex;
| ^~~~~~
In file included from ~/Detours/src/disolx86.cpp:2:
~/Detours/src/disasm.cpp:45:33: warning: when initialized here [-Wreorder]
45 | #define CDetourDis CDetourDisX86
| ^~~~~~~~~~~~~
~/Detours/src/disasm.cpp:45:33: note: in definition of macro ‘CDetourDis’
45 | #define CDetourDis CDetourDisX86
| ^~~~~~~~~~~~~
In file included from ~/Detours/src/disolx64.cpp:2:
~/Detours/src/disasm.cpp: In constructor ‘CDetourDisX64::CDetourDisX64(BYTE**, LONG*)’:
~/Detours/src/disasm.cpp:301:25: warning: ‘CDetourDisX64::m_bF3’ will be initialized after [-Wreorder]
301 | BOOL m_bF3; // x86 only
| ^~~~~
~/Detours/src/disasm.cpp:298:25: warning: ‘BOOL CDetourDisX64::m_bVex’ [-Wreorder]
298 | BOOL m_bVex;
| ^~~~~~
In file included from ~/Detours/src/disolx64.cpp:2:
~/Detours/src/disasm.cpp:57:33: warning: when initialized here [-Wreorder]
57 | #define CDetourDis CDetourDisX64
| ^~~~~~~~~~~~~
~/Detours/src/disasm.cpp:57:33: note: in definition of macro ‘CDetourDis’
57 | #define CDetourDis CDetourDisX64
|
Describe the bug
man 1 gcc
(Included in-Wall
for C++)https://clang.llvm.org/docs/DiagnosticsReference.html#wreorder
Expected behavior Compiles without warnings
Detours version https://github.com/microsoft/Detours/commit/827b89608ce66892963d1467d15a86f0b2832a78