Skip to content

Commit

Permalink
enable useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 30, 2024
1 parent 29d7ca3 commit 0c70993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/AwsCheckHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function(aws_check_headers_internal target std is_cxx)
# MSVC complains about windows' own header files. Use /W4 instead of /Wall
target_compile_options(${HEADER_CHECKER_LIB} PRIVATE /W4 /WX)
else()
target_compile_options(${HEADER_CHECKER_LIB} PRIVATE -Wall -Wextra -Wpedantic -Werror)
target_compile_options(${HEADER_CHECKER_LIB} PRIVATE -Wall -Wextra -Wpedantic -Werror -Wuseless-cast)
endif()

foreach(header IN LISTS ARGN)
Expand Down

0 comments on commit 0c70993

Please sign in to comment.