Skip to content

fix: Remove instances of undefined behavior #4192

fix: Remove instances of undefined behavior

fix: Remove instances of undefined behavior #4192

Triggered via pull request November 22, 2024 22:13
@jadebennjadebenn
synchronize #1652
ub-fixes
Status Success
Total duration 3m 11s
Artifacts

build-and-test.yml

on: pull_request
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

25 errors and 7 warnings
Build & Test (windows-2022): dCommon/Amf3.h#L103
'AMFValue': unspecialized class template can't be used as a template argument for template parameter '_Callable', expected a real type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dGameBase.vcxproj]
Build & Test (windows-2022): dCommon/Amf3.h#L133
'AMFArrayValue::ValueType': use of alias template requires template argument list [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dGameBase.vcxproj]
Build & Test (windows-2022): dCommon/Amf3.h#L103
'AMFValue': unspecialized class template can't be used as a template argument for template parameter '_Callable', expected a real type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dCommon\dCommon.vcxproj]
Build & Test (windows-2022): dCommon/Amf3.h#L133
'AMFArrayValue::ValueType': use of alias template requires template argument list [D:\a\DarkflameServer\DarkflameServer\build\msvc\dCommon\dCommon.vcxproj]
Build & Test (windows-2022)
run-cmake action execution failed: 'Error: "'C:\Program Files\CMake\bin\cmake.exe' failed with error code: '1'.'
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L103
type/value mismatch at argument 1 in template parameter list for ‘template<class _Fn, class ... _Args> using invoke_result_t = typename std::invoke_result::type’
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L103
‘<expression error>’ in namespace ‘std’ does not name a type
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L133
‘ValueType’ was not declared in this scope; did you mean ‘GetValueType’?
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L133
template argument 1 is invalid
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L133
template argument 1 is invalid
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L133
‘<expression error>’ in namespace ‘std’ does not name a type
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L186
‘ValueType’ was not declared in this scope; did you mean ‘GetValueType’?
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L186
template argument 1 is invalid
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L186
template argument 1 is invalid
Build & Test (ubuntu-22.04): dCommon/Amf3.h#L186
‘<expression error>’ in namespace ‘std’ does not name a type
Build & Test (macos-13): dCommon/Amf3.h#L103
use of class template 'AMFValue' requires template arguments
Build & Test (macos-13): dCommon/Amf3.h#L133
use of undeclared identifier 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L133
unknown type name 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L186
use of undeclared identifier 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L186
no template named 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L241
use of undeclared identifier 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L241
no template named 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L304
use of undeclared identifier 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L327
use of undeclared identifier 'ValueType'
Build & Test (macos-13): dCommon/Amf3.h#L135
use of undeclared identifier 'ValueType'; did you mean 'GetValueType'?
Build & Test (windows-2022): thirdparty/libbcrypt/include/bcrypt/bcrypt.h#L17
'BCRYPT_HASHSIZE': macro redefinition [D:\a\DarkflameServer\DarkflameServer\build\msvc\thirdparty\bcrypt.vcxproj]
Build & Test (windows-2022): thirdparty/libbcrypt/src/bcrypt.c#L158
'=': 'char *' differs in levels of indirection from 'int' [D:\a\DarkflameServer\DarkflameServer\build\msvc\thirdparty\bcrypt.vcxproj]
Build & Test (windows-2022): thirdparty/libbcrypt/src/bcrypt.c#L166
'=': 'char *' differs in levels of indirection from 'int' [D:\a\DarkflameServer\DarkflameServer\build\msvc\thirdparty\bcrypt.vcxproj]
Build & Test (macos-13)
openssl@3 3.4.0 is already installed and up-to-date. To reinstall 3.4.0, run: brew reinstall openssl@3
Build & Test (macos-13): thirdparty/mariadb-connector-cpp/src/logger/LoggerFactory.cpp#L28
variable 'NO_LOGGER' is uninitialized when used within its own initialization [-Wuninitialized]
Build & Test (macos-13): thirdparty/mariadb-connector-cpp/src/logger/LoggerFactory.cpp#L28
variable 'NO_LOGGER' is uninitialized when used within its own initialization [-Wuninitialized]
Build & Test (macos-13): thirdparty/mariadb-connector-cpp/src/com/RowProtocol.cpp#L260
shift count >= width of type [-Wshift-count-overflow]