Replies: 2 comments 1 reply
-
|
Please do the following and report back on precisely what warning the compiler emits: If you are compiling with warning flags that are not included in If, for some reason, you want to enable unusual warning flags in part of your software, but not others, you can do so. Please refer to the documentation of your compiler.
Please refer to the documentation of your compiler. |
Beta Was this translation helpful? Give feedback.
-
|
I am going to close this. It is always possible to find a static analysis tool that will produce warnings for almost any kind of code. It is not useful work to silence these warnings. For example, with int main(int argc, char **argv) {
if (argc != 2) {
return 0;
}
printf("argv[1] = %s\n", argv[1]);
}(Code taken from StackOverflow.) Indeed, the static analyser will consider that That's not reasonable at scale. It might be reasonable for one's own code, but it is not viable within simdjson to avoid pointer accesses. We support compiling with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am getting tons of warnings coming from both header and source files. How do I disable them??
/bitbucket/kskapp$ clang++ --version
Debian clang version 18.1.8 (++20240731024826+3b5b5c1ec4a3-1
exp120240731144843.145)Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
On Debian 12.
simdjson version 3.10.1 from August 26, 2024, it's in a "single" file. I just drop header and source files into my project.
I saw the SIMDJSON_DISABLE_GCC_WARNING multiple statements in simdjson.h that
start around line 460, but those look like apply to Visual Studio. Anything I add there just does not have
any effect.
How do I disable all those warnings? I build my projects not to have any warnings.
Note, I don't want to disable warnings for my whole project but only those that are generated by simdjson.
Tx
Beta Was this translation helpful? Give feedback.
All reactions