mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 21:06:25 +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/internal/json_reference.hpp>
|
||||||
#include <valijson/schema.hpp>
|
#include <valijson/schema.hpp>
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
# pragma clang diagnostic push
|
||||||
# pragma clang diagnostic ignored "-Wunused-local-typedef"
|
# pragma clang diagnostic ignored "-Wunused-local-typedef"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1570,6 +1569,8 @@ private:
|
|||||||
|
|
||||||
} // namespace valijson
|
} // namespace valijson
|
||||||
|
|
||||||
#pragma clang diagnostic pop
|
#ifdef __clang__
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user