Skip to content
Snippets Groups Projects
Commit 3b4f9a2a authored by Sujin Philip's avatar Sujin Philip
Browse files

Fix Diy dashboard warning

Fix dashboard warnings due to older versions of gcc not recognizing the
suppressed warnings.
parent 52dc64bb
Branches
Tags
No related merge requests found
......@@ -40,16 +40,14 @@
#elif defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__PGI) // for GCC and Clang only
# define VTKDIY2_WARNING_PRAGMAS \
_Pragma("GCC diagnostic ignored \"-Wshadow\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-result\"")
// Older versions of GCC don't support the push/pop pragmas
# if (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
# define VTKDIY2_WARNINGS_PUSH
# define VTKDIY2_WARNINGS_POP
# else
// Older versions of GCC don't support the push/pop pragmas and some dont
// recognize the suppressed warnings
# if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
# define VTKDIY2_WARNING_PRAGMAS \
_Pragma("GCC diagnostic ignored \"-Wshadow\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-result\"")
# define VTKDIY2_WARNINGS_PUSH _Pragma("GCC diagnostic push")
# define VTKDIY2_WARNINGS_POP _Pragma("GCC diagnostic pop")
# endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment