Skip to content
Snippets Groups Projects
Commit 0b8e6304 authored by dutor's avatar dutor Committed by GitHub
Browse files

Replace libev with libevent in GenericWorker (#26)

Turned on `-Wshadow`.
parent 7e548b8d
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ add_compile_options(-Winvalid-pch)
add_compile_options(-Wall)
add_compile_options(-Werror)
add_compile_options(-Wno-error=sign-compare)
add_compile_options(-Wshadow)
include_directories(SYSTEM ${VGRAPH_HOME}/third-party/bzip2/_install/include)
include_directories(SYSTEM ${VGRAPH_HOME}/third-party/double-conversion/_install/include)
......
......@@ -238,8 +238,9 @@ Expression::ReturnType ArithmeticExpression::eval() const {
}
return asInt(left) % asInt(right);
default:
assert(false);
DCHECK(false);
}
return false;
}
std::string RelationalExpression::toString() const {
......
......@@ -59,8 +59,9 @@ public:
case 4:
return asString(value).empty();
default:
assert(false);
DCHECK(false);
}
return false;
}
static const std::string& asString(const ReturnType &value) {
......
add_executable(parser_test ParserTest.cpp $<TARGET_OBJECTS:parser_obj>)
target_link_libraries(parser_test gtest gtest_main pthread)
add_executable(
parser_test
ParserTest.cpp
$<TARGET_OBJECTS:parser_obj>
)
target_link_libraries(
parser_test
gtest
gtest_main
glog
gflags
pthread
)
target_include_directories(parser_test SYSTEM BEFORE PUBLIC ${FLEX_INCLUDE_DIRS})
add_test(NAME parser_test COMMAND parser_test)
add_executable(scanner_test ScannerTest.cpp $<TARGET_OBJECTS:parser_obj>)
target_link_libraries(scanner_test gtest gtest_main pthread)
add_executable(
scanner_test
ScannerTest.cpp
$<TARGET_OBJECTS:parser_obj>
)
target_link_libraries(
scanner_test
gtest
gtest_main
glog
gflags
pthread
)
target_include_directories(scanner_test SYSTEM BEFORE PUBLIC ${FLEX_INCLUDE_DIRS})
add_test(NAME scanner_test COMMAND scanner_test)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment