File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
#define TOSTRING (x ) STRINGIFY(x)
15
15
16
16
#ifdef _MSC_VER
17
- #define WARNING (msg ) __pragma(message(__FILE__ " (" TOSTRING(__LINE__) " ): warning: " msg))
17
+ #define WARNING (msg ) \
18
+ __pragma (message(__FILE__ " (" TOSTRING(__LINE__) "): warning: " msg))
18
19
#elif defined(__GNUC__) || defined(__clang__)
19
20
#define WARNING (msg ) _Pragma (TOSTRING(GCC warning msg))
20
21
#else
21
22
#define WARNING (msg ) // Unsupported compiler
22
23
#endif
23
24
24
- #if !defined(SYCL_LANGUAGE_VERSION) && !defined(SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
25
+ #if !defined(SYCL_LANGUAGE_VERSION) && \
26
+ !defined(SYCL_DISABLE_FSYCL_SYCLHPP_WARNING)
25
27
WARNING (" You are including <sycl/sycl.hpp> without -fsycl flag, \
26
28
which is errorenous for device code compilation. This warning \
27
29
can be disabled by setting SYCL_DISABLE_FSYCL_SYCLHPP_WARNING macro." )
You can’t perform that action at this time.
0 commit comments