gcc-10: fix hyperscan compile issue

Fixes github issue #239
This commit is contained in:
Hong, Yang A 2020-05-18 20:08:20 +00:00
parent 765b8f9fb9
commit 4d33736a5c
2 changed files with 8 additions and 2 deletions

View File

@ -418,6 +418,12 @@ CHECK_CXX_COMPILER_FLAG("-Wunused-local-typedefs" CXX_UNUSED_LOCAL_TYPEDEFS)
# gcc5 complains about this
CHECK_CXX_COMPILER_FLAG("-Wunused-variable" CXX_WUNUSED_VARIABLE)
# gcc 10 complains about this
CHECK_C_COMPILER_FLAG("-Wstringop-overflow" CC_STRINGOP_OVERFLOW)
if(CC_STRINGOP_OVERFLOW)
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wno-stringop-overflow")
endif()
endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})

View File

@ -40,12 +40,12 @@ using namespace std;
using namespace ue2;
struct SimpleV {
size_t index;
size_t index = 0;
string test_v = "SimpleV";
};
struct SimpleE {
size_t index;
size_t index = 0;
string test_e = "SimpleE";
};