Skip to content
Snippets Groups Projects
Commit 0e35762a authored by Soeren Peters's avatar Soeren Peters
Browse files

Make clang defs only in clang env.

parent 4cfe1d17
No related branches found
No related tags found
1 merge request!237Adds Ubuntu 22_04 image.
......@@ -14,11 +14,15 @@
#include <helper_cuda.h>
#include <curand.h>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#pragma clang diagnostic ignored "-Wunused-but-set-parameter"
#endif
#include <curand_kernel.h>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
class Parameter;
class PorousMedia;
......
......@@ -14,11 +14,15 @@
#include <cuda_runtime.h>
#include <curand.h>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#pragma clang diagnostic ignored "-Wunused-but-set-parameter"
#endif
#include <curand_kernel.h>
#ifdef __clang__
#pragma clang diagnostic pop
#endif
struct LBMSimulationParameter;
class Parameter;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment