How can I solve catkin error: "use of old-style cast"?
Catkin gives me an error on some third-party header files, which I included in my code. The error message says, the code was using old-style casts.
I know, that the error results from the compiler option -Werror=old-style-cast
, but I wasn't able to find an easy workaround without removing the flag from my CMakeLists.txt.
I would like to allow old-style casts temporarily by passing the right compiler option to catkin_make
or catkin build
, but all my attempts have failed so far.