Closed geometrylearner closed 2 years ago
Thanks for your report.
We have tuned the cmake files to remove -Werror
. Only use this option when the developer mode is enabled.
This compilation (a warning in deed) or other warnings will not stop the buiding.
Enjoy it.
Perfect tuning in time, Thanks a lot!
My dependencies:
workspace/PurC/Source/PurC/utils/stringbuilder.c:123:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 123 | *p = '\0'; |
~^~~~ [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/variant/variant.c.o [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/variant/walk.c.o [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vcm/vcm.c.o [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/hvml-attr.c.o [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/hvml-tag.c.o [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/vdom.c.o cc1: all warnings being treated as errors make[2]: [Source/PurC/CMakeFiles/PurC.dir/build.make:5042: Source/PurC/CMakeFiles/PurC.dir/utils/stringbuilder.c.o] Error 1 make[2]: Waiting for unfinished jobs.... [ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/ports/vasprintf.c.o /home/saito/workspace/PurC/Source/PurC/variant/basic-types.c: In function ‘purc_variant_make_string_ex’: /home/saito/workspace/PurC/Source/PurC/variant/basic-types.c:235:27: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 235 | value->bytes[len] = '\0'; |~~~~^~~~ In file included from /home/saito/workspace/PurC/Source/PurC/include/private/instance.h:32, from /home/saito/workspace/PurC/Source/PurC/variant/basic-types.c:30: /home/saito/workspace/PurC/Source/PurC/include/private/variant.h:168:21: note: at offset 0 to object ‘bytes’ with size 0 declared here 168 | uint8_t bytes[0]; | ^~~~~ cc1: all warnings being treated as errors make[2]: [Source/PurC/CMakeFiles/PurC.dir/build.make:5112: Source/PurC/CMakeFiles/PurC.dir/variant/basic-types.c.o] Error 1 [ 80%] Linking CXX static library ../../../../lib/libgtest_main.a [ 80%] Built target gtest_main make[1]: [CMakeFiles/Makefile2:967: Source/PurC/CMakeFiles/PurC.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [ 80%] Linking CXX static library ../../../../lib/libgmock.a [ 80%] Built target gmock make: [Makefile:156: all] Error 2