I am working on a project in which I use the new C ++ 11 standard. Because of this, the few included headers from the library now generate a warning -Wliteral-suffix , which I would suppress for this.
I found an easy solution for this using pragmas, but for me it does not work
How to suppress GCC warnings from library headers?
This is my current code:
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" #include <pylon/PylonBase.h> #include <pylon/InstantCamera.h> #include <pylon/TlFactory.h> #pragma GCC diagnostic pop
All current warnings generated by the library are as follows:
/opt/pylon3/genicam/library/CPP/include/Base/GCException.h:272:105: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
I am using gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
source share