From 3e48d9aef08df693bfa43a836eeb1fbfae75b258 Mon Sep 17 00:00:00 2001 From: yixinglu <2520865+yixinglu@users.noreply.github.com> Date: Mon, 6 Jan 2020 10:45:24 +0800 Subject: [PATCH] Fix gcc warning for lower version --- .github/workflows/build.yaml | 4 +++- src/parser/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4908f2571e4..fa7338511de 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,7 +25,9 @@ jobs: - centos7 - ubuntu1604 - ubuntu1804 - compiler: [gcc, clang] + compiler: + - gcc + # - clang exclude: - tag: centos6 compiler: clang diff --git a/src/parser/CMakeLists.txt b/src/parser/CMakeLists.txt index ba3b2123863..85227483c75 100644 --- a/src/parser/CMakeLists.txt +++ b/src/parser/CMakeLists.txt @@ -8,7 +8,7 @@ add_custom_target(parser_target DEPENDS ${FLEX_Scanner_OUTPUTS} ${BISON_Parser_O add_flex_bison_dependency(Scanner Parser) -add_compile_options(-Wno-error=sign-compare) +add_compile_options(-Wno-sign-compare) nebula_add_library( parser_obj OBJECT