Skip to content

Commit ac845f0

Browse files
graphicsManfacebook-github-bot
authored andcommitted
Disable strongop-overflow warning for GCC compiler
Summary: There is a false warning that causes compilation issues when GCC is compiler and target is 32-bit. Turn off the warning to avoid -Werror errors. Reviewed By: RomanFedotovFB Differential Revision: D55090465 fbshipit-source-id: c00ca2b9ac7c1579e371e93d7d08cdfbe4b91515
1 parent 4ebef42 commit ac845f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dispenso/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ endif()
2222

2323
target_compile_options(dispenso PRIVATE
2424
$<$<CXX_COMPILER_ID:MSVC>:/W3 /WX>
25+
$<$<CXX_COMPILER_ID:GNU>: -Wno-stringop-overflow>
2526
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -pedantic -Wconversion -Wno-sign-conversion -Werror>
26-
)
27+
)
2728

2829
if(WIN32)
2930
target_compile_definitions(dispenso PUBLIC NOMINMAX)

0 commit comments

Comments
 (0)