Code: Select all
make -C shared
make -C loader
make -C po
make[1]: Entering directory '/home/mbutler/src/GIMX/shared'
make -C gimxlog UHID=1
make[1]: Entering directory '/home/mbutler/src/GIMX/po'
make[1]: 'all' is up to date.
make[1]: Leaving directory '/home/mbutler/src/GIMX/po'
make -C gimxcontroller UHID=1
make -C gimxusb UHID=1
make[1]: Entering directory '/home/mbutler/src/GIMX/loader'
make[2]: Entering directory '/home/mbutler/src/GIMX/shared/gimxlog'
make[2]: Entering directory '/home/mbutler/src/GIMX/shared/gimxcontroller'
make[2]: Entering directory '/home/mbutler/src/GIMX/shared/gimxusb'
g++ -Wall -Wextra -Werror -O3 -I../shared `wx-config --cflags` -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wno-cast-function-type -Wno-deprecated-copy -Wno-ignored-qualifiers -c -o gimx-loader.o gimx-loader.cpp
cc -fPIC -Wall -Wextra -Werror -O3 -Iinclude -I../ -DGLOG_NAME=gimxlog -c -o src/glog.o src/glog.c
cc -fPIC -Iinclude -Wall -Wextra -Werror -O3 -I../ -DGLOG_NAME=gimxcontroller -c -o src/controller.o src/controller.c
cc -fPIC -Wall -Wextra -Werror -O3 -Iinclude -I. -I../ -DGLOG_NAME=gimxusb -c -o src/gusb.o src/gusb.c
src/controller.c: In function ‘controller_get_axis_index’:
src/controller.c:361:10: error: the comparison will always evaluate as ‘true’ for the address of ‘name’ will never be NULL [-Werror=address]
361 | if(controllers[C_TYPE_SIXAXIS]->axes[i].name)
| ^~~~~~~~~~~
In file included from src/controller.c:6:
src/../include/controller.h:46:14: note: ‘name’ declared here
46 | const char name[AXIS_NAME_MAX_SIZE];
| ^~~~
cc -Iinclude -I../ -DGLOG_NAME=gimxlog -fPIC -Wall -Wextra -Werror -O3 -Wall -Wextra -Werror -O3 -shared src/glog.o -o libgimxlog.so
cc1: all warnings being treated as errors
make[2]: *** [<builtin>: src/controller.o] Error 1
make[2]: Leaving directory '/home/mbutler/src/GIMX/shared/gimxcontroller'
make[1]: *** [Makefile:35: build-gimxcontroller] Error 2
make[1]: *** Waiting for unfinished jobs....
g++ -Wall -Wextra -Werror -O3 -I../shared `wx-config --cflags` -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wno-cast-function-type -Wno-deprecated-copy -Wno-ignored-qualifiers -c -o loaderApp.o loaderApp.cpp
make[2]: Leaving directory '/home/mbutler/src/GIMX/shared/gimxlog'
In function ‘get_string_descriptor’,
inlined from ‘get_string_descriptor’ at src/gusb.c:523:12:
src/gusb.c:569:120: error: pointer ‘data’ may be used after ‘realloc’ [-Werror=use-after-free]
569 | LIBUSB_REQUEST_GET_DESCRIPTOR, (LIBUSB_DT_STRING << 8) | index, descriptors->langId0.wData[0], data, descriptor->bLength, DEFAULT_TIMEOUT);
| ~~~~~~~~~~^~~~~~~~~
src/gusb.c:559:18: note: call to ‘realloc’ here
559 | void * ptr = realloc(data, descriptor->bLength * sizeof(*data));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [<builtin>: src/gusb.o] Error 1
make[2]: Leaving directory '/home/mbutler/src/GIMX/shared/gimxusb'
make[1]: *** [Makefile:35: build-gimxusb] Error 2
make[1]: Leaving directory '/home/mbutler/src/GIMX/shared'
make: *** [Makefile:15: build-shared] Error 2
make: *** Waiting for unfinished jobs....
cc -L../shared/gimxtime gimx-loader.o loaderApp.o `wx-config --libs` -lstdc++ -lgimxtime -o gimx-loader
/usr/bin/ld: cannot find -lgimxtime: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [<builtin>: gimx-loader] Error 1
make[1]: Leaving directory '/home/mbutler/src/GIMX/loader'
make: *** [Makefile:15: build-loader] Error 2
Code: Select all
src/controller.c: In function ‘controller_get_axis_index’:
src/controller.c:361:10: error: the comparison will always evaluate as ‘true’ for the address of ‘name’ will never be NULL [-Werror=address]
361 | if(controllers[C_TYPE_SIXAXIS]->axes[i].name)
EDIT: And the second warning/error looks to be some security use-after-free protection detection.