Skip to content

Fix some compiler warnings in the 2dlib directory #1948

Fix some compiler warnings in the 2dlib directory

Fix some compiler warnings in the 2dlib directory #1948

Triggered via pull request October 30, 2024 15:09
Status Success
Total duration 8m 9s
Artifacts 10

build.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

102 warnings
macOS-ARM, Release: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
macOS-ARM, Release: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
macOS-ARM, Release: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
macOS-ARM, Release: third_party/stb/stb_image_write.h#L776
'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
macOS-ARM, Release: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
macOS-ARM, Release: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
macOS-ARM, Release: ddio/lnxforcefeedback.cpp#L135
unused function 'ddio_ff_SetCoopLevel' [-Wunused-function]
macOS-ARM, Release: ddio/lnxmouse.cpp#L425
variable 'frame_count' set but not used [-Wunused-but-set-variable]
macOS-ARM, Release: cfile/cfile.cpp#L129
lambda capture 'search_path' is not used [-Wunused-lambda-capture]
macOS-ARM, Release: cfile/cfile.cpp#L129
lambda capture 'result' is not used [-Wunused-lambda-capture]
macOS-ARM, Debug: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
macOS-ARM, Debug: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
macOS-ARM, Debug: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
macOS-ARM, Debug: third_party/stb/stb_image_write.h#L776
'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
macOS-ARM, Debug: fix/fix.cpp#L129
unknown pragma ignored [-Wunknown-pragmas]
macOS-ARM, Debug: scripts/osiris_vector.h#L28
unknown pragma ignored [-Wunknown-pragmas]
macOS-ARM, Debug: scripts/osiris_vector.h#L28
unknown pragma ignored [-Wunknown-pragmas]
macOS-ARM, Debug: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
macOS-ARM, Debug: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
macOS-ARM, Debug: ddio/lnxforcefeedback.cpp#L135
unused function 'ddio_ff_SetCoopLevel' [-Wunused-function]
macOS-Intel, Debug
A brownout will take place on November 4, 14:00 UTC - November 5, 00:00 UTC to raise awareness of the upcoming macOS-12 environment removal. For more details, see https://github.com/actions/runner-images/issues/10721
macOS-Intel, Debug: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
macOS-Intel, Debug: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
macOS-Intel, Debug: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
macOS-Intel, Debug: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
macOS-Intel, Debug: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
macOS-Intel, Debug: ddio/lnxforcefeedback.cpp#L135
unused function 'ddio_ff_SetCoopLevel' [-Wunused-function]
macOS-Intel, Debug: cfile/cfile.cpp#L129
lambda capture 'search_path' is not used [-Wunused-lambda-capture]
macOS-Intel, Debug: cfile/cfile.cpp#L129
lambda capture 'result' is not used [-Wunused-lambda-capture]
macOS-Intel, Debug: cfile/cfile.cpp#L148
left operand of comma operator has no effect [-Wunused-value]
macOS-Intel, Debug: cfile/cfile.cpp#L148
left operand of comma operator has no effect [-Wunused-value]
Linux-x64, Debug: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Linux-x64, Debug: bitmap/iff.cpp#L385
unused variable ‘newsig’ [-Wunused-variable]
Linux-x64, Debug: bitmap/iff.cpp#L552
variable ‘form_len’ set but not used [-Wunused-but-set-variable]
Linux-x64, Debug: bitmap/bitmain.cpp#L578
unused variable ‘num_counted’ [-Wunused-variable]
Linux-x64, Debug: bitmap/bitmain.cpp#L648
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Linux-x64, Debug: bitmap/bitmain.cpp#L644
unused variable ‘cur_len’ [-Wunused-variable]
Linux-x64, Debug: bitmap/bitmain.cpp#L671
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Linux-x64, Debug: bitmap/bitmain.cpp#L655
unused variable ‘last’ [-Wunused-variable]
Linux-x64, Debug: bitmap/tga.cpp#L329
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Linux-x64, Debug: bitmap/tga.cpp#L541
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Linux-x64, Release: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Linux-x64, Release: 2dlib/font.cpp#L634
variable ‘width’ set but not used [-Wunused-but-set-variable]
Linux-x64, Release: 2dlib/memsurf.cpp#L268
unused variable ‘sbm’ [-Wunused-variable]
Linux-x64, Release: 2dlib/surface.cpp#L457
‘grerr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Linux-x64, Release: bitmap/iff.cpp#L385
unused variable ‘newsig’ [-Wunused-variable]
Linux-x64, Release: bitmap/iff.cpp#L552
variable ‘form_len’ set but not used [-Wunused-but-set-variable]
Linux-x64, Release: bitmap/tga.cpp#L329
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Linux-x64, Release: bitmap/tga.cpp#L541
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Linux-x64, Release: bitmap/bitmain.cpp#L578
unused variable ‘num_counted’ [-Wunused-variable]
Linux-x64, Release: bitmap/bitmain.cpp#L648
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Linux-x64-clang, Debug: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Linux-x64-clang, Debug: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Linux-x64-clang, Debug: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Linux-x64-clang, Debug: bitmap/bitmain.cpp#L578
unused variable 'num_counted' [-Wunused-variable]
Linux-x64-clang, Debug: bitmap/bitmain.cpp#L644
unused variable 'cur_len' [-Wunused-variable]
Linux-x64-clang, Debug: bitmap/bitmain.cpp#L655
unused variable 'last' [-Wunused-variable]
Linux-x64-clang, Debug: bitmap/iff.cpp#L177
explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself [-Wself-assign]
Linux-x64-clang, Debug: bitmap/iff.cpp#L349
logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
Linux-x64-clang, Debug: bitmap/iff.cpp#L385
unused variable 'newsig' [-Wunused-variable]
Linux-x64-clang, Debug: bitmap/iff.cpp#L552
variable 'form_len' set but not used [-Wunused-but-set-variable]
Linux-x64-clang, Release: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Linux-x64-clang, Release: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Linux-x64-clang, Release: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Linux-x64-clang, Release: 2dlib/font.cpp#L634
variable 'width' set but not used [-Wunused-but-set-variable]
Linux-x64-clang, Release: 2dlib/memsurf.cpp#L268
unused variable 'sbm' [-Wunused-variable]
Linux-x64-clang, Release: 2dlib/surface.cpp#L177
variable 'grerr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
Linux-x64-clang, Release: 2dlib/surface.cpp#L450
variable 'grerr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
Linux-x64-clang, Release: bitmap/iff.cpp#L177
explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself [-Wself-assign]
Linux-x64-clang, Release: bitmap/iff.cpp#L349
logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
Linux-x64-clang, Release: bitmap/iff.cpp#L385
unused variable 'newsig' [-Wunused-variable]
macOS-Intel, Release
A brownout will take place on November 4, 14:00 UTC - November 5, 00:00 UTC to raise awareness of the upcoming macOS-12 environment removal. For more details, see https://github.com/actions/runner-images/issues/10721
macOS-Intel, Release: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
macOS-Intel, Release: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
macOS-Intel, Release: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
macOS-Intel, Release: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
macOS-Intel, Release: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
macOS-Intel, Release: ddio/lnxforcefeedback.cpp#L135
unused function 'ddio_ff_SetCoopLevel' [-Wunused-function]
macOS-Intel, Release: module/module.cpp#L236
unused variable 'buffer' [-Wunused-variable]
macOS-Intel, Release: fix/fix.cpp#L129
unknown pragma ignored [-Wunknown-pragmas]
macOS-Intel, Release: cfile/cfile.cpp#L129
lambda capture 'search_path' is not used [-Wunused-lambda-capture]
macOS-Intel, Release: cfile/cfile.cpp#L129
lambda capture 'result' is not used [-Wunused-lambda-capture]
Windows-x64, Debug: misc/pstring.cpp#L74
'<': signed/unsigned mismatch
Windows-x64, Debug: mem/mem.cpp#L633
'initializing': conversion from 'size_t' to 'int', possible loss of data
Windows-x64, Debug: mem/mem.cpp#L680
'return': conversion from 'size_t' to 'int', possible loss of data
Windows-x64, Debug: mem/mem.cpp#L883
'type cast': pointer truncation from 'void *' to 'uint32_t'
Windows-x64, Debug: mem/mem.cpp#L883
'type cast': truncation from 'void *' to 'uint32_t'
Windows-x64, Debug: ddio/lnxio.cpp#L127
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
Windows-x64, Debug: ddio/file.cpp#L66
'e': unreferenced local variable
Windows-x64, Debug: ddio/file.cpp#L100
'e': unreferenced local variable
Windows-x64, Debug: ddio/file.cpp#L122
'e': unreferenced local variable
Windows-x64, Debug: ddio/file.cpp#L176
'argument': conversion from 'int64_t' to 'unsigned int', possible loss of data
Windows-x64, Release: misc/pstring.cpp#L74
'<': signed/unsigned mismatch
Windows-x64, Release: mem/mem.cpp#L633
'initializing': conversion from 'size_t' to 'int', possible loss of data
Windows-x64, Release: mem/mem.cpp#L680
'return': conversion from 'size_t' to 'int', possible loss of data
Windows-x64, Release: mem/mem.cpp#L883
'type cast': pointer truncation from 'void *' to 'uint32_t'
Windows-x64, Release: mem/mem.cpp#L883
'type cast': truncation from 'void *' to 'uint32_t'
Windows-x64, Release: ddio/file.cpp#L66
'e': unreferenced local variable
Windows-x64, Release: ddio/file.cpp#L100
'e': unreferenced local variable
Windows-x64, Release: ddio/file.cpp#L122
'e': unreferenced local variable
Windows-x64, Release: ddio/file.cpp#L176
'argument': conversion from 'int64_t' to 'unsigned int', possible loss of data
Windows-x64, Release: ddio/lnxio.cpp#L127
'argument': conversion from 'size_t' to 'DWORD', possible loss of data

Artifacts

Produced during runtime
Name Size
Descent3_Debug_Linux-x64
66.3 MB
Descent3_Debug_Linux-x64-clang
52 MB
Descent3_Debug_Windows-x64
25.3 MB
Descent3_Debug_macOS-ARM
24 MB
Descent3_Debug_macOS-Intel
26.5 MB
Descent3_Release_Linux-x64
9.73 MB
Descent3_Release_Linux-x64-clang
8.83 MB
Descent3_Release_Windows-x64
15.3 MB
Descent3_Release_macOS-ARM
7.53 MB
Descent3_Release_macOS-Intel
8.1 MB