mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Don't error on strict-aliasing warnings.
These warnings occur in release mode for the double-to-uint64 cast used for transmitting double values.
This commit is contained in:
@@ -4,7 +4,7 @@ project(ntcore)
|
||||
if (MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DNOMINMAX /D_SCL_SECURE_NO_WARNINGS")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wformat=2 -Wall -Wextra -Werror -pedantic -Wno-unused-parameter")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wformat=2 -Wall -Wextra -Werror -pedantic -Wno-unused-parameter -Wno-error=strict-aliasing")
|
||||
endif()
|
||||
|
||||
# This must be a macro(), as inside a function string() can only
|
||||
|
||||
Reference in New Issue
Block a user