Control Surface  1.1.1
MIDI Control Surface library for Arduino
Warnings.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #if defined(__GNUC__) && !defined(__clang__)
4 
5 #define AH_DIAGNOSTIC_WERROR() \
6  _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic error \"-Wall\"") \
7  _Pragma("GCC diagnostic error \"-Wextra\"") \
8  _Pragma("GCC diagnostic ignored \"-Wc++0x-compat\"")
9 #define AH_DIAGNOSTIC_POP() _Pragma("GCC diagnostic pop")
10 #define AH_DIAGNOSTIC_EXTERNAL_HEADER() \
11  _Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") \
12  _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"")
13 
14 #else
15 
16 #define AH_DIAGNOSTIC_WERROR()
17 #define AH_DIAGNOSTIC_POP()
18 #define AH_DIAGNOSTIC_EXTERNAL_HEADER()
19 
20 #endif