mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 12:58:03 +01:00
Only enable clang-specific pragmas when clang is actually being used
This commit is contained in:
parent
5085804d80
commit
70f066b3f9
@ -16,9 +16,8 @@
|
||||
#include <valijson/internal/json_reference.hpp>
|
||||
#include <valijson/schema.hpp>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wunused-local-typedef"
|
||||
#endif
|
||||
|
||||
@ -1570,6 +1569,8 @@ private:
|
||||
|
||||
} // namespace valijson
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
#ifdef __clang__
|
||||
# pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user