Skip to content

fix: Remove instances of undefined behavior #4222

fix: Remove instances of undefined behavior

fix: Remove instances of undefined behavior #4222

Triggered via pull request November 28, 2024 02:51
@jadebennjadebenn
synchronize #1652
ub-fixes
Status Success
Total duration 12m 16s
Artifacts 2

build-and-test.yml

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

Annotations

8 errors and 24 warnings
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L55
'bit_cast': is not a member of 'std' [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L55
type 'float' unexpected [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L84
'bit_cast': is not a member of 'std' [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L84
'int32_t': expected an expression instead of a type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L84
'startTime': const object must be initialized [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L86
'bit_cast': is not a member of 'std' [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.vcxproj]
Build & Test (windows-2022): dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp#L86
type 'float' unexpected [D:\a\DarkflameServer\DarkflameServer\build\msvc\dScripts\02_server\Map\AG\dScriptsServerMapAG.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 (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 (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dComponents\dComponents.vcxproj]
Build & Test (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dPropertyBehaviors\dPropertyBehaviors.vcxproj]
Build & Test (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dPropertyBehaviors\dPropertyBehaviors.vcxproj]
Build & Test (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dPropertyBehaviors\dPropertyBehaviors.vcxproj]
Build & Test (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dPropertyBehaviors\dPropertyBehaviors.vcxproj]
Build & Test (windows-2022): dGame/dPropertyBehaviors/ControlBehaviorMessages/MoveToInventoryMessage.h#L11
#pragma warning: unknown user warning type [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dPropertyBehaviors\dPropertyBehaviors.vcxproj]
Build & Test (windows-2022): dGame/dUtilities/Preconditions.cpp#L140
'<': unsafe use of type 'bool' in operation [D:\a\DarkflameServer\DarkflameServer\build\msvc\dGame\dUtilities\dUtilities.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]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]
Build & Test (ubuntu-22.04): dCommon/dClient/AssetManager.h#L58
dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing]

Artifacts

Produced during runtime
Name Size
build-macos-13
23.9 MB
build-ubuntu-22.04
64.3 MB