Closed pavelxdd closed 1 year ago
I tried to copy yyjson.h
and yyjson.c
into my project sources, instead of compiling the library, so the compiler flags from my project issued these warnings.
It seems that the warning options in CMakeLists are not enough, I will add some more warning options and fix the corresponding warnings soon.
When compiled via GCC 12 with
-Wduplicated-branches
, there's a warning: https://github.com/ibireme/yyjson/blob/8bc8bc38851aa95de7b29ae28d0afe63b58f157a/src/yyjson.c#L4122With
-Wfloat-equal
: https://github.com/ibireme/yyjson/blob/8bc8bc38851aa95de7b29ae28d0afe63b58f157a/src/yyjson.c#L4251Clang issues warnings only for
-Wfloat-equal
.