dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
667 stars 38 forks source link

Gcc compilation warnings #391

Open juozaspo opened 1 month ago

juozaspo commented 1 month ago

While building on Linux with latest cmake and gcc 11 I've encountered some warnings. The warnings are listed below. Not sure if they might cause bugs, but listing anyway, fixing them might avoid future issues if any.

lib/BRender-v1.3.2/core/fw/devsetup.c ``` In file included from /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/ddi/brddi.h:60, from /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/fw.h:16, from /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:13: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In function ‘BrRendererFacilityFind’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:398:42: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 398 | ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ | | | br_renderer_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:398:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’ 398 | ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:402:46: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 402 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ | | | br_output_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:402:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’ 402 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:405:41: warning: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 405 | ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ | | | br_renderer_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:405:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’ 405 | ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In function ‘BrRendererFacilityListFind’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:494:42: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 494 | ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_OL); | ^~~~~~~~~~~~~~~~~~ | | | br_renderer_facility *** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:494:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility ***’ 494 | ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_OL); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:498:46: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 498 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ | | | br_output_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:498:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’ 498 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:501:41: warning: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 501 | ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_OL); | ^~~~~~~~~~~~~~~~~~ | | | br_renderer_facility *** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:501:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility ***’ 501 | ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_OL); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In function ‘BrPrimitiveLibraryFind’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:669:42: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 669 | ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_O); | ^~~~~~~~~~~~~~~~~~ | | | br_primitive_library ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:669:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library **’ 669 | ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_O); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:673:46: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 673 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ | | | br_output_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:673:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’ 673 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:676:41: warning: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 676 | ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_O); | ^~~~~~~~~~~~~~~~~~ | | | br_primitive_library ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:676:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library **’ 676 | ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_O); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In function ‘BrPrimitiveLibraryListFind’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:765:42: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 765 | ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL); | ^~~~~~~~~~~~~~~~~~ | | | br_primitive_library *** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:765:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library ***’ 765 | ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:769:46: warning: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 769 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ | | | br_output_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:769:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’ 769 | r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O); | ^~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:772:41: warning: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 772 | ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL); | ^~~~~~~~~~~~~~~~~~ | | | br_primitive_library *** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:772:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library ***’ 772 | ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In function ‘BrGeometryFormatFind’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:937:39: warning: passing argument 2 of ‘((br_object *)renderer)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types] 937 | ObjectQuery(renderer, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ | | | br_renderer_facility ** /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ^~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:937:39: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’ 937 | ObjectQuery(renderer, &renderer_facility, BRT_RENDERER_FACILITY_O); | ^~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’ 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2) | ```
lib/BRender-v1.3.2/core/fw/loader.c ``` /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c: In function ‘ImageLoad’: /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:143:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 143 | arena_base = (br_uint_8 *) (((int)arena_base+arena_align-1) & (~(arena_align-1))); | ^ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:143:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 143 | arena_base = (br_uint_8 *) (((int)arena_base+arena_align-1) & (~(arena_align-1))); | ^ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:225:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 225 | img->functions[n] = (void *)((br_uint_32)(img->functions[n]) + arena_base); | ^ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:228:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 228 | img->names[n] = (char *)((br_uint_32)(img->names[n]) + arena_base); | ^ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:311:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 311 | if(((br_uint_32)arena_base != nt_header.image_base) && | ^ /home/juozas/dethrace/lib/BRender-v1.3.2/core/fw/loader.c:321:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 321 | delta = (br_int_32)arena_base - nt_header.image_base; | ```
src/DETHRACE/common/loading.c ``` /home/juozas/dethrace/src/DETHRACE/common/loading.c: In function ‘GetCDPathFromPathsTxtFile’: /home/juozas/dethrace/src/DETHRACE/common/loading.c:3352:31: warning: ‘%s’ directive writing up to 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 3352 | sprintf(paths_txt, "%s%s%s", gApplication_path, gDir_separator, "PATHS.TXT"); | ^~ ~~~~~~~~~~~~~~ /home/juozas/dethrace/src/DETHRACE/common/loading.c:3352:9: note: ‘sprintf’ output between 10 and 267 bytes into a destination of size 256 3352 | sprintf(paths_txt, "%s%s%s", gApplication_path, gDir_separator, "PATHS.TXT"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
src/DETHRACE/common/netgame.c ``` /home/juozas/dethrace/src/DETHRACE/common/netgame.c: In function ‘DoNetworkHeadups’: /home/juozas/dethrace/src/DETHRACE/common/netgame.c:688:28: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 688 | sprintf(s, "%s \xf8%s\xfa", GetMiscString(kMiscString_TARGET_182), s2); | ^~ ~~ /home/juozas/dethrace/src/DETHRACE/common/netgame.c:688:9: note: ‘sprintf’ output 4 or more bytes (assuming 259) into a destination of size 256 688 | sprintf(s, "%s \xf8%s\xfa", GetMiscString(kMiscString_TARGET_182), s2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/src/DETHRACE/common/netgame.c:692:28: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] 692 | sprintf(s, "%s \xf8%s\xfa", GetMiscString(kMiscString_LIMIT), s2); | ^~ ~~ /home/juozas/dethrace/src/DETHRACE/common/netgame.c:692:9: note: ‘sprintf’ output 4 or more bytes (assuming 259) into a destination of size 256 692 | sprintf(s, "%s \xf8%s\xfa", GetMiscString(kMiscString_LIMIT), s2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
src/DETHRACE/common/opponent.c ``` /home/juozas/dethrace/src/DETHRACE/common/opponent.c: In function ‘LoadInOppoPaths’: /home/juozas/dethrace/src/DETHRACE/common/opponent.c:2247:92: warning: ‘%s’ directive writing up to 255 bytes into a region of size 182 [-Wformat-overflow=] 2247 | "Errors in opponent path data. All have been corrected and written out to '%s'. Refer to diagnostic file " | ^~ 2248 | "for more details.", 2249 | gOppo_path_filename); | ~~~~~~~~~~~~~~~~~~~ /home/juozas/dethrace/src/DETHRACE/common/opponent.c:2245:13: note: ‘sprintf’ output between 120 and 375 bytes into a destination of size 256 2245 | sprintf( | ^~~~~~~~ 2246 | s, | ~~ 2247 | "Errors in opponent path data. All have been corrected and written out to '%s'. Refer to diagnostic file " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2248 | "for more details.", | ~~~~~~~~~~~~~~~~~~~~ 2249 | gOppo_path_filename); | ~~~~~~~~~~~~~~~~~~~~ ```

Commit: e3a50e34d148f5a9192bce1d990803375ff2a41c BRender commit: dethrace-labs/BRender-v1.3.2@23e73d31685e163de9a48303fe61b7693eda45b5 (git master: dethrace-labs/BRender-v1.3.2@9c34086300f4f0bbb3a55206380f25b17dad6c12) OS: Ubuntu 22.04 LTS 64-Bit CMake: Version 3.29.6 (installed from kitware repositories) gcc: Version 11.4.0