[D] Deleted -Werror
flag from default flgs for gcc and clang
This commit is contained in:
parent
80d6a4ddfc
commit
428b7b9b18
@ -3,6 +3,9 @@ freebsd_instance:
|
|||||||
|
|
||||||
main_task:
|
main_task:
|
||||||
script:
|
script:
|
||||||
|
- CMAKE_C_FLAGS="-Werror"
|
||||||
|
- CMAKE_CXX_FLAGS="-Werror"
|
||||||
|
|
||||||
- uname -a
|
- uname -a
|
||||||
- ls
|
- ls
|
||||||
- yes | pkg install cmake
|
- yes | pkg install cmake
|
||||||
@ -27,7 +30,7 @@ main_task:
|
|||||||
# Test build without optimizations and with asan
|
# Test build without optimizations and with asan
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DFORT_BUILD_TYPE=asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11
|
- cmake .. -DFORT_BUILD_TYPE=asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
@ -37,7 +40,7 @@ main_task:
|
|||||||
# Test build without optimizations and with ubsan
|
# Test build without optimizations and with ubsan
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DFORT_BUILD_TYPE=ubsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11
|
- cmake .. -DFORT_BUILD_TYPE=ubsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
@ -47,7 +50,7 @@ main_task:
|
|||||||
# Test without WCHAR support
|
# Test without WCHAR support
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DFORT_ENABLE_WCHAR=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11
|
- cmake .. -DFORT_ENABLE_WCHAR=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
|
11
.travis.yml
11
.travis.yml
@ -119,6 +119,9 @@ matrix:
|
|||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- CMAKE_C_FLAGS="-Werror"
|
||||||
|
- CMAKE_CXX_FLAGS="-Werror"
|
||||||
|
|
||||||
# Check library file was generated
|
# Check library file was generated
|
||||||
- python amalgamate.py -o dummy.c
|
- python amalgamate.py -o dummy.c
|
||||||
- wc dummy.c
|
- wc dummy.c
|
||||||
@ -191,7 +194,7 @@ script:
|
|||||||
# Test build without optimizations and with asan
|
# Test build without optimizations and with asan
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DFORT_BUILD_TYPE=asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11
|
- cmake .. -DFORT_BUILD_TYPE=asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
@ -201,7 +204,7 @@ script:
|
|||||||
- rm -r build/*
|
- rm -r build/*
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DFORT_ENABLE_WCHAR=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11
|
- cmake .. -DFORT_ENABLE_WCHAR=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}"
|
||||||
- cmake --build . --target all
|
- cmake --build . --target all
|
||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
@ -212,7 +215,7 @@ script:
|
|||||||
cd .. ;
|
cd .. ;
|
||||||
rm -r build/* ;
|
rm -r build/* ;
|
||||||
cd build ;
|
cd build ;
|
||||||
cmake .. -DFORT_BUILD_TYPE=ubsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 ;
|
cmake .. -DFORT_BUILD_TYPE=ubsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" ;
|
||||||
cmake --build . --target all ;
|
cmake --build . --target all ;
|
||||||
ls ;
|
ls ;
|
||||||
ctest -VV;
|
ctest -VV;
|
||||||
@ -258,7 +261,7 @@ script:
|
|||||||
cd .. ;
|
cd .. ;
|
||||||
rm -r build/* ;
|
rm -r build/* ;
|
||||||
cd build ;
|
cd build ;
|
||||||
cmake .. -DFORT_BUILD_TYPE=coveralls -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 ;
|
cmake .. -DFORT_BUILD_TYPE=coveralls -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" ;
|
||||||
cmake --build . --target all ;
|
cmake --build . --target all ;
|
||||||
ls ;
|
ls ;
|
||||||
./tests/libfort_test_dev ;
|
./tests/libfort_test_dev ;
|
||||||
|
@ -46,7 +46,6 @@ else()
|
|||||||
set(ADDITIONAL_WARNINGS "\
|
set(ADDITIONAL_WARNINGS "\
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Werror \
|
|
||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wformat=2 \
|
-Wformat=2 \
|
||||||
|
Loading…
Reference in New Issue
Block a user