Add if def guard to msvc specific pragma

#pragma warning is msvc specific and will not work in clang. You are already using if def guards for clang specific pragmas in multiple files so this was probably just a simple miss 😃
This commit is contained in:
William Hjelm 2022-11-02 13:12:07 +01:00 committed by GitHub
parent 9fd56d0dd7
commit 04ecb0e59b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,15 @@
#define FFX_MAX_CONST_SIZE 64
/// Off by default warnings
#if defined(_MSC_VER)
#pragma warning(disable : 4365 4710 4820 5039)
#elif defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wunused-function"
#pragma clang diagnostic ignored "-Wignored-qualifiers"
#endif
#ifdef __cplusplus
extern "C" {