Silence spurious warning and enable JSON_DIAGNOSTICS everywhere
This commit is contained in:
committed by
Patrick Nicolas
parent
8a48f8ff7b
commit
d2ff28f988
@@ -18,10 +18,7 @@
|
||||
*/
|
||||
|
||||
#define JSON_DISABLE_ENUM_SERIALIZATION 1
|
||||
#ifdef JSON_DIAGNOSTICS
|
||||
#undef JSON_DIAGNOSTICS
|
||||
#endif
|
||||
#define JSON_DIAGNOSTICS 1
|
||||
|
||||
#include <algorithm>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
@@ -216,7 +213,7 @@ static void save_keys(const std::vector<headset_key> & keys)
|
||||
|
||||
for (const auto & key: keys)
|
||||
{
|
||||
json.push_back(nlohmann::json{
|
||||
json.push_back({
|
||||
{"key", key.public_key},
|
||||
{"name", key.name},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user