diff --git a/rtgui/main.cc b/rtgui/main.cc index 155d9f3ba..0af9082cf 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -21,6 +21,8 @@ #if defined(__FAST_MATH__) #error Using the -ffast-math CFLAG is known to lead to problems. Disable it to compile RawTherapee. #endif +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif #include "config.h" @@ -465,3 +467,6 @@ int processLineParams( int argc, char **argv ) return errors > 0 ? -2 : 0; } +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // __GNUC__ \ No newline at end of file