Skip to content

Remove redundant casts and string operations #185

Remove redundant casts and string operations

Remove redundant casts and string operations #185

Triggered via pull request May 21, 2025 17:19
Status Success
Total duration 15m 21s
Artifacts 8

ci.yml

on: pull_request
Matrix: Build for PR / build
Fit to window
Zoom out
Zoom in

Annotations

98 warnings
Build for PR / macOS, Debug: fix/fix.cpp#L129
unknown pragma ignored [-Wunknown-pragmas]
Build for PR / macOS, Debug: fix/fix.cpp#L129
unknown pragma ignored [-Wunknown-pragmas]
Build for PR / macOS, 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]
Build for PR / macOS, 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]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Build for PR / macOS, Debug: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Build for PR / macOS, Release: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
Build for PR / macOS, Release: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
Build for PR / macOS, Release: mem/mem.cpp#L244
unused variable 'Mem_failsafe_block' [-Wunused-variable]
Build for PR / macOS, Release: mem/mem.cpp#L218
mem.cpp: Compiling For Run-Time Library usage [-W#pragma-messages]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L148
unused variable 'T1266' [-Wunused-const-variable]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L147
unused variable 'T913' [-Wunused-const-variable]
Build for PR / macOS, Release: AudioEncode/aencode.cpp#L146
unused variable 'T911' [-Wunused-const-variable]
Build for PR / Linux-x64, Debug: cfile/cfile.cpp#L165
left operand of comma operator has no effect [-Wunused-value]
Build for PR / Linux-x64, Debug: cfile/cfile.cpp#L163
left operand of comma operator has no effect [-Wunused-value]
Build for PR / Linux-x64, Debug: cfile/cfile.cpp#L163
left operand of comma operator has no effect [-Wunused-value]
Build for PR / Linux-x64, Debug: cfile/cfile.cpp#L158
left operand of comma operator has no effect [-Wunused-value]
Build for PR / Linux-x64, Debug: cfile/cfile.cpp#L158
left operand of comma operator has no effect [-Wunused-value]
Build for PR / Linux-x64, Debug: ddio/lnxforcefeedback.cpp#L135
‘int ddio_ff_SetCoopLevel(tDevice, int)’ defined but not used [-Wunused-function]
Build for PR / Linux-x64, Debug: mem/mem.cpp#L244
‘Mem_failsafe_block’ defined but not used [-Wunused-variable]
Build for PR / Linux-x64, Debug: misc/pstring.cpp#L87
comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
Build for PR / Linux-x64, Debug: misc/pstring.cpp#L74
comparison of integer expressions of different signedness: ‘long int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
Build for PR / Linux-x64, Debug: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Build for PR / Linux-x64, Debug
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-x64, Debug
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-x64, Debug
You will need to install Xorg dependencies to use feature x11:
Build for PR / Linux-x64, Release: cfile/cfile.cpp#L272
comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
Build for PR / Linux-x64, Release: stream_audio/streamaudio.cpp#L514
‘granularity’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Build for PR / Linux-x64, Release: stream_audio/streamaudio.cpp#L464
variable ‘bytesize’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-x64, Release: ddio/lnxfile.cpp#L87
ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
Build for PR / Linux-x64, Release: ddio/lnxforcefeedback.cpp#L135
‘int ddio_ff_SetCoopLevel(tDevice, int)’ defined but not used [-Wunused-function]
Build for PR / Linux-x64, Release: mem/mem.cpp#L244
‘Mem_failsafe_block’ defined but not used [-Wunused-variable]
Build for PR / Linux-x64, Release
‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 80 equals destination size [-Wstringop-truncation]
Build for PR / Linux-x64, Release: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Build for PR / Linux-x64, Release: misc/pstring.cpp#L87
comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
Build for PR / Linux-x64, Release: misc/pstring.cpp#L74
comparison of integer expressions of different signedness: ‘long int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
Build for PR / Linux-x64, Release
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-x64, Release
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-x64, Release
You will need to install Xorg dependencies to use feature x11:
Build for PR / Windows-x64, Debug: ddio/file.cpp#L67
'e': unreferenced local variable
Build for PR / Windows-x64, Debug: ddio/lnxio.cpp#L127
'argument': conversion from 'size_t' to 'DWORD', possible loss of data
Build for PR / Windows-x64, Debug: mem/mem.cpp#L883
'type cast': truncation from 'void *' to 'uint32_t'
Build for PR / Windows-x64, Debug: mem/mem.cpp#L883
'type cast': pointer truncation from 'void *' to 'uint32_t'
Build for PR / Windows-x64, Debug: mem/mem.cpp#L680
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Debug: mem/mem.cpp#L633
'initializing': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Debug: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Debug: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Debug: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Debug: misc/pstring.cpp#L74
'<': signed/unsigned mismatch
Build for PR / Windows-x64, Release: ddio/file.cpp#L101
'e': unreferenced local variable
Build for PR / Windows-x64, Release: ddio/file.cpp#L67
'e': unreferenced local variable
Build for PR / Windows-x64, Release: mem/mem.cpp#L883
'type cast': truncation from 'void *' to 'uint32_t'
Build for PR / Windows-x64, Release: mem/mem.cpp#L883
'type cast': pointer truncation from 'void *' to 'uint32_t'
Build for PR / Windows-x64, Release: mem/mem.cpp#L680
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Release: mem/mem.cpp#L633
'initializing': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Release: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Release: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Release: lib/vecmat_external.h#L56
'return': conversion from 'size_t' to 'int', possible loss of data
Build for PR / Windows-x64, Release: misc/pstring.cpp#L74
'<': signed/unsigned mismatch
Build for PR / Linux-cross-arm64, Debug: linux/registry.cpp#L116
variable ‘save_p’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Debug: linux/registry.cpp#L82
variable ‘save_p’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Debug: linux/lnxcon_raw.cpp#L177
format not a string literal and no format arguments [-Wformat-security]
Build for PR / Linux-cross-arm64, Debug: linux/lnxcon_raw.cpp#L129
array subscript has type ‘char’ [-Wchar-subscripts]
Build for PR / Linux-cross-arm64, Debug: bitmap/tga.cpp#L541
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Debug: bitmap/tga.cpp#L329
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Debug: bitmap/bitmain.cpp#L666
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Build for PR / Linux-cross-arm64, Debug: bitmap/bitmain.cpp#L644
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Build for PR / Linux-cross-arm64, Debug: bitmap/iff.cpp#L552
variable ‘form_len’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Debug: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Build for PR / Linux-cross-arm64, Debug
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-cross-arm64, Debug
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-cross-arm64, Debug
You will need to install Xorg dependencies to use feature x11:
Build for PR / Linux-cross-arm64, Debug
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-cross-arm64, Debug
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-cross-arm64, Debug
You will need to install Xorg dependencies to use feature x11:
Build for PR / Linux-cross-arm64, Release: bitmap/bitmain.cpp#L644
comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
Build for PR / Linux-cross-arm64, Release: linux/lnxcon_raw.cpp#L177
format not a string literal and no format arguments [-Wformat-security]
Build for PR / Linux-cross-arm64, Release: linux/lnxcon_raw.cpp#L129
array subscript has type ‘char’ [-Wchar-subscripts]
Build for PR / Linux-cross-arm64, Release: bitmap/tga.cpp#L541
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Release: bitmap/tga.cpp#L329
variable ‘data8bit’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Release: bitmap/iff.cpp#L552
variable ‘form_len’ set but not used [-Wunused-but-set-variable]
Build for PR / Linux-cross-arm64, Release: netgames/hoard/hoard.cpp#L1077
‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
Build for PR / Linux-cross-arm64, Release: netgames/hoard/hoard.cpp#L1328
‘color’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Build for PR / Linux-cross-arm64, Release: netgames/entropy/EntropyRoom.cpp#L170
unused variable ‘newpk’ [-Wunused-variable]
Build for PR / Linux-cross-arm64, Release: AudioEncode/aencode.cpp#L959
comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘AudioError’ [-Wsign-compare]
Build for PR / Linux-cross-arm64, Release
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-cross-arm64, Release
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-cross-arm64, Release
You will need to install Xorg dependencies to use feature x11:
Build for PR / Linux-cross-arm64, Release
You will need to install ibus dependencies to use feature ibus:
Build for PR / Linux-cross-arm64, Release
You will need to install Wayland dependencies to use feature wayland:
Build for PR / Linux-cross-arm64, Release
You will need to install Xorg dependencies to use feature x11:

Artifacts

Produced during runtime
Name Size Digest
Descent3_Debug_Linux-cross-arm64 Expired
70 MB
sha256:62013173472f0239d21b7b3fc36e8d1ca2c9fa3a808eaab6f495eb7ac8ae7087
Descent3_Debug_Linux-x64 Expired
80.2 MB
sha256:9fa0941ce31fbd31fd6cc1c584aa591824887e2035f52b436b52505b1a5ba075
Descent3_Debug_Windows-x64 Expired
31.2 MB
sha256:5619518a8b468b057e4ab7aa43285c1095cfc69ac28a28b79e6811769efeef50
Descent3_Debug_macOS Expired
58.1 MB
sha256:902bafbcac9d2bf31285220a895209e772b8d30fb543830189d6aabe027986db
Descent3_Release_Linux-cross-arm64 Expired
9.11 MB
sha256:3be707cf9cc37ec72d0f5ecac0ce8287fa50ed5da8a29cea84883147efdbe266
Descent3_Release_Linux-x64 Expired
9.17 MB
sha256:423c27e7e21ff515bdc21af0892f569dc9242e6e52ddc752ed2670f5f338c36e
Descent3_Release_Windows-x64 Expired
17.8 MB
sha256:b610e0704213b5fb17b9eaacbdd1f94788935dc767f46f30453211114c568231
Descent3_Release_macOS Expired
14.5 MB
sha256:b2d42dd504da3fd6f74f4aa14be8ff79110820220e0febc3089c9b3dc69047b8