Skip to content

Commit

Permalink
#1855 disable warnings from boost
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Dec 12, 2024
1 parent 81c3914 commit 8a42875
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libdevcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +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
-Wno-nonnull
)

# Needed to prevent including system-level boost headers:
Expand Down
2 changes: 1 addition & 1 deletion libethereum/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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
-Wno-nonnull
)

target_include_directories( ethereum PRIVATE "${UTILS_INCLUDE_DIR}" ${SKUTILS_INCLUDE_DIRS}
Expand Down
2 changes: 1 addition & 1 deletion libp2p/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +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
-Wno-nonnull
)

if(MINIUPNPC)
Expand Down
2 changes: 1 addition & 1 deletion libskale/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +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
-Wno-nonnull
)

#target_compile_options( skale PRIVATE -Weffc++ )
Expand Down
2 changes: 1 addition & 1 deletion libskale/SnapshotHashAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ std::vector< std::string > SnapshotHashAgent::getNodesToDownloadSnapshotFrom(
( this->chainParams_.sChain.nodes.at( i ).port + 3 )
.convert_to< std::string >();
auto snapshotData = askNodeForHash( nodeUrl, blockNumber );
if ( std::get< 0 >( snapshotData ).size ) {
if ( std::get< 0 >( snapshotData ).size > 0 ) {
const std::lock_guard< std::mutex > lock( this->hashesMutex );

this->isReceived_.at( i ) = true;
Expand Down
2 changes: 1 addition & 1 deletion libweb3jsonrpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +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
-Wno-nonnull
)

target_link_libraries( web3jsonrpc
Expand Down
2 changes: 1 addition & 1 deletion skaled/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +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
-Wno-nonnull
)

if( APPLE )
Expand Down

0 comments on commit 8a42875

Please sign in to comment.