|
1 | | -/* auto-generated on Thu Apr 23 09:19:14 PDT 2020. Do not edit! */ |
| 1 | +/* auto-generated on Thu Apr 23 15:36:58 PDT 2020. Do not edit! */ |
2 | 2 | /* begin file simdjson.h */ |
3 | 3 | #ifndef SIMDJSON_H |
4 | 4 | #define SIMDJSON_H |
@@ -103,6 +103,20 @@ enum { |
103 | 103 | #define IS_ARM64 1 |
104 | 104 | #endif |
105 | 105 |
|
| 106 | +#if (!defined(IS_X86_64)) && (!defined(IS_ARM64)) |
| 107 | +#if _MSC_VER |
| 108 | +#pragma message("The simdjson library is designed\ |
| 109 | + for 64-bit processors and it seems that you are not\ |
| 110 | +compiling for a known 64-bit platform. All fast kernels\ |
| 111 | +will be disabled and performance may be poor. Please\ |
| 112 | +use a 64-bt target such as x64 or 64-bit ARM.") |
| 113 | +#else |
| 114 | +#error "The simdjson library is designed\ |
| 115 | + for 64-bit processors. It seems that you are not\ |
| 116 | +compiling for a known 64-bit platform." |
| 117 | +#endif |
| 118 | +#endif // (!defined(IS_X86_64)) && (!defined(IS_ARM64)) |
| 119 | +
|
106 | 120 | // this is almost standard? |
107 | 121 | #undef STRINGIFY_IMPLEMENTATION_ |
108 | 122 | #undef STRINGIFY |
@@ -344,6 +358,7 @@ constexpr size_t DEFAULT_MAX_DEPTH = 1024; |
344 | 358 | #define SIMDJSON_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push") |
345 | 359 | // gcc doesn't seem to disable all warnings with all and extra, add warnings here as necessary |
346 | 360 | #define SIMDJSON_PUSH_DISABLE_ALL_WARNINGS SIMDJSON_PUSH_DISABLE_WARNINGS \ |
| 361 | + SIMDJSON_DISABLE_GCC_WARNING(-Weffc++) \ |
347 | 362 | SIMDJSON_DISABLE_GCC_WARNING(-Wall) \ |
348 | 363 | SIMDJSON_DISABLE_GCC_WARNING(-Wconversion) \ |
349 | 364 | SIMDJSON_DISABLE_GCC_WARNING(-Wextra) \ |
|
0 commit comments