work around build warning on jetson (#8701)

This commit is contained in:
George Wu 2021-08-12 08:37:25 -07:00 committed by GitHub
parent 333ef3c089
commit 7ff6a5e503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,10 +61,15 @@
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable : 28020)
#elif __aarch64__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
#include "nlohmann/json.hpp"
#ifdef _WIN32
#pragma warning(pop)
#elif __aarch64__
#pragma GCC diagnostic pop
#endif
#include "asserts.h"