You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using cmake for my project, but when i use clang to compile it gives me this error
Severity Code Description Project File Line Suppression State Details
Error unsafe buffer access [-Werror,-Wunsafe-buffer-usage] C:\Users\User\Source\Repos\MyProject\out\build\x64-Clang-Release\piratesengine C:\Users\User\Source\Repos\MyProject\assimp\include\assimp\fast_atof.h 178
But I don't Get the same error when compiling with MSVC
Here is How my cmake look like
assimp
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_NO_EXPORT ON CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE INTERNAL "" FORCE)
i am using cmake for my project, but when i use clang to compile it gives me this error
Severity Code Description Project File Line Suppression State Details
Error unsafe buffer access [-Werror,-Wunsafe-buffer-usage] C:\Users\User\Source\Repos\MyProject\out\build\x64-Clang-Release\piratesengine C:\Users\User\Source\Repos\MyProject\assimp\include\assimp\fast_atof.h 178
But I don't Get the same error when compiling with MSVC
Here is How my cmake look like
assimp
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_NO_EXPORT ON CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE INTERNAL "" FORCE)
add_subdirectory(assimp)
include_directories(${CMAKE_SOURCE_DIR}/assimp/include)
target_link_libraries( MyProject PRIVATE ${OPENGL_LIBRARIES} glfw assimp)
i am Using windows 11 with visual studio 2022.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: