In case if I compile my code with GCC 7.3 and enable -Wall, I get following warnings reported. Obviously I can disable them for the given header file. Would be great if you could fix that at your convenience:
it's a compiler bug that was fixed in GCC 8, Clang never warned about it, you can try it on godbolt.
you're not supposed to compile third-party project with your own set of warning/error-specific compiler flags. It's generally not possible to support all existing compiler versions and their flags, it would be a waste of time.
In case if I compile my code with GCC 7.3 and enable
-Wall
, I get following warnings reported. Obviously I can disable them for the given header file. Would be great if you could fix that at your convenience: