Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-1784 Fix swarmDB & bzapi compiler warnings for gcc 9.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruck committed Oct 24, 2019
1 parent f5e24ff commit 25c7506
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ else()
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
set(warnings "${warnings} -Wno-maybe-uninitialized")
endif()

set(warnings "${warnings} -Wno-deprecated-copy -Wno-sign-compare")
endif()

set(CMAKE_CXX_FLAGS ${warnings})
Expand Down
2 changes: 1 addition & 1 deletion cmake/googletest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set_property(DIRECTORY PROPERTY CLEAN_NO_CUSTOM
"${CMAKE_CURRENT_BINARY_DIR}/googletest")

ExternalProject_Get_Property(googletest source_dir)
include_directories(${source_dir}/googlemock/include ${source_dir}/googletest/include)
include_directories(SYSTEM ${source_dir}/googlemock/include ${source_dir}/googletest/include)

ExternalProject_Get_Property(googletest binary_dir)
link_directories(${binary_dir}/googlemock)
Expand Down
5 changes: 3 additions & 2 deletions scripts/crud
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#

import websocket
import ssl
import sys
import random
from argparse import ArgumentParser
Expand Down Expand Up @@ -65,7 +66,7 @@ def send_request(node, uuid, msg, loop=False, ws=None):
global CRUD_SCRIPT_SENDER_ID

if not ws:
ws = websocket.create_connection("ws://" + node)
ws = websocket.create_connection("wss://" + node)
msg.header.db_uuid = uuid

# hack!
Expand Down Expand Up @@ -102,7 +103,7 @@ def send_request(node, uuid, msg, loop=False, ws=None):


def send_status_request(node):
ws = websocket.create_connection("ws://" + args.node)
ws = websocket.create_connection("wss://" + args.node, sslopt={"cert_reqs": ssl.CERT_NONE})
msg_outer = bluzelle_pb2.bzn_envelope()
msg_inner = status_pb2.status_request()
msg_outer.swarm_id = CRUD_SCRIPT_SWARM_ID
Expand Down

0 comments on commit 25c7506

Please sign in to comment.