BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDefinitions.h
Go to the documentation of this file.
1#ifndef BmnDefinitions_h
2#define BmnDefinitions_h
3
4#if defined(_MSC_VER)
5#define DISABLE_UNUSED_PARAM_WARNING __pragma(warning(push)) __pragma(warning(disable : 4100))
6
7#define RESTORE_UNUSED_PARAM_WARNING \
8 __pragma((warning(pop))
9
10#elif defined(__clang__)
11#define DISABLE_UNUSED_PARAM_WARNING \
12 _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wunused-parameter\"")
13
14#define RESTORE_UNUSED_PARAM_WARNING _Pragma("clang diagnostic pop")
15
16#elif defined(__GNUC__)
17#define DISABLE_UNUSED_PARAM_WARNING \
18 _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"")
19
20#define RESTORE_UNUSED_PARAM_WARNING _Pragma("GCC diagnostic pop")
21#else
22#define DISABLE_UNUSED_PARAM_WARNING
23#define RESTORE_UNUSED_PARAM_WARNING
24#endif
25
26#endif // BmnDefinitions_h