vigra icon indicating copy to clipboard operation
vigra copied to clipboard

Vigra pollutes builds with pragmas that suppress warnings

Open samkhal opened this issue 4 years ago • 0 comments

config.hxx currently uses compiler-specific warning suppression pragmas, such as here. This pollutes the build of anyone including this file who relies on the suppressed warnings, particularly for anyone also using -Werror, as this introduces compile errors that are dependent on where vigra is first included.

If suppressing these warnings from within vigra is desired, push and pop pragmas should be used to apply and reset these suppressions when entering and leaving vigra code.

samkhal avatar Nov 17 '20 22:11 samkhal