Skip to content

Commit

Permalink
#1855 ignore compilation error from boost
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Nov 21, 2024
1 parent 6fb4aaf commit e3d1cca
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ if( TESTS )
include( ProjectBinaryen )
endif()


if (HISTORIC_STATE)
add_definitions(-DHISTORIC_STATE=1)
endif (HISTORIC_STATE)
Expand Down
5 changes: 0 additions & 5 deletions cmake/EthCompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ if( SKALED_HATE_WARNINGS )
add_compile_options( -Wno-error=non-virtual-dtor )
add_compile_options( -Werror -Wno-deprecated-declarations)
add_compile_options( -Wno-error=sign-compare )
#add_compile_options( -Wno-error=reorder )
#add_compile_options( -Wno-error=deprecated )
#add_compile_options( -Wno-error=unused-variable )
#add_compile_options( -Wno-error=unused-parameter )
#add_compile_options( -Wno-error=unused-but-set-variable )
add_compile_options(-Wno-error=int-in-bool-context)
add_compile_options(-Wno-error=address)
add_compile_options(-Wno-error=nonnull-compare)
Expand Down
1 change: 1 addition & 0 deletions libdevcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ add_dependencies(devcore secp256k1)
target_compile_options( devcore PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter
-Wno-error=unused-variable -Wno-error=maybe-uninitialized -Wno-error=class-memaccess
-Wno-error=nonnull
)

# Needed to prevent including system-level boost headers:
Expand Down
1 change: 1 addition & 0 deletions libethereum/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ add_library( ethereum ${sources} InstanceMonitor.cpp InstanceMonitor.h

target_compile_options( ethereum PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=maybe-uninitialized
-Wno-error=nonnull
)

target_include_directories( ethereum PRIVATE "${UTILS_INCLUDE_DIR}" ${SKUTILS_INCLUDE_DIRS}
Expand Down
1 change: 1 addition & 0 deletions libp2p/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ target_link_libraries(p2p PUBLIC devcrypto devcore)
target_include_directories(p2p SYSTEM PRIVATE ${CRYPTOPP_INCLUDE_DIR})
target_compile_options( p2p PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=maybe-uninitialized
-Wno-error=nonnull
)

if(MINIUPNPC)
Expand Down
1 change: 1 addition & 0 deletions libskale/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ target_link_libraries(skale PRIVATE ethereum web3jsonrpc historic skutils
)
target_compile_options( skale PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=maybe-uninitialized
-Wno-error=nonnull
)

#target_compile_options( skale PRIVATE -Weffc++ )
Expand Down
1 change: 1 addition & 0 deletions libweb3jsonrpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ target_compile_options( web3jsonrpc PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=maybe-uninitialized
-Wno-error=pessimizing-move
-Wno-error=stringop-truncation
-Wno-error=nonnull
)

target_link_libraries( web3jsonrpc
Expand Down
1 change: 1 addition & 0 deletions skaled/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_executable(${EXECUTABLE_NAME} ${sources})

target_compile_options( ${EXECUTABLE_NAME} PRIVATE
-Wno-error=deprecated-copy -Wno-error=unused-result -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=maybe-uninitialized
-Wno-error=nonnull
)

if( APPLE )
Expand Down

0 comments on commit e3d1cca

Please sign in to comment.