forked from rabbitmq/rabbitmq-c
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add warning flags in CI configuration
These flags were removed from the CMakeLists.txt earlier, so adding them back here. Signed-off-by: GitHub <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
build_cmake() { | ||
mkdir $PWD/_build && cd $PWD/_build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror -Wno-implicit-fallthrough" | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror" | ||
cmake --build . --target install | ||
ctest -V . | ||
} | ||
|
||
build_macos() { | ||
mkdir $PWD/_build && cd $PWD/_build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Werror" \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/../_install -DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror" \ | ||
-DOPENSSL_ROOT_DIR="/usr/local/opt/[email protected]" | ||
cmake --build . --target install | ||
ctest -V . | ||
|
@@ -25,7 +25,7 @@ build_format() { | |
build_coverage() { | ||
mkdir $PWD/_build && cd $PWD/_build | ||
cmake .. -DCMAKE_BUILD_TYPE=Coverage -DCMAKE_INSTALL_PREFIX=$PWD/../_install \ | ||
-DCMAKE_C_FLAGS="-Werror -fprofile-arcs -ftest-coverage" | ||
-DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror -fprofile-arcs -ftest-coverage" | ||
cmake --build . --target install | ||
ctest -V . | ||
|
||
|
@@ -36,15 +36,15 @@ build_coverage() { | |
build_asan() { | ||
mkdir $PWD/_build && cd $PWD/_build | ||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/../_install \ | ||
-DCMAKE_C_FLAGS="-Werror -fsanitize=address,undefined -O1" | ||
-DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror -fsanitize=address,undefined -O1" | ||
cmake --build . --target install | ||
ctest -V . | ||
} | ||
|
||
build_tsan() { | ||
mkdir $PWD/_build && cd $PWD/_build | ||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/../_install \ | ||
-DCMAKE_C_FLAGS="-Werror -fsanitize=thread,undefined -O1" | ||
-DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror -fsanitize=thread,undefined -O1" | ||
cmake --build . --target install | ||
ctest -V . | ||
} | ||
|
@@ -55,7 +55,7 @@ build_scan-build() { | |
scan-build cmake .. -DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_C_COMPILER=clang \ | ||
-DCMAKE_INSTALL_PREFIX=$PWD/../_install \ | ||
-DCMAKE_C_FLAGS="-Werror" | ||
-DCMAKE_C_FLAGS="-Wall -Wextra -Wstrict-prototypes -Wno-unused-function -Werror" | ||
scan-build make install | ||
} | ||
|
||
|