From ec2b79950f241cef14eb96372d3ef5159f66d4ba Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Thu, 14 Jul 2022 02:18:58 -0700 Subject: [PATCH] Fixed CI. --- .github/workflows/ci.yml | 4 ++-- .travis.yml | 8 ++++---- graphs.hpp | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6f32ed..820d4fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,9 @@ jobs: $CXX --version - name: Script run: | - $CXX -Wall -g -Og -fsanitize=address,undefined tables.cpp -o tables + $CXX -std=c++17 -Wall -g -Og -fsanitize=address,undefined tables.cpp -o tables ./tables - $CXX -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o graphs + $CXX -std=c++17 -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o graphs ./graphs - name: Cppcheck run: cppcheck --enable=all . diff --git a/.travis.yml b/.travis.yml index 9a5e281..5c865b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,12 @@ install: - sudo apt-get -yqq update - sudo apt-get -yqq install cppcheck script: - - g++ -Wall -g -Og -fsanitize=address,undefined tables.cpp -o gcc_tables + - g++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined tables.cpp -o gcc_tables - ./gcc_tables - - g++ -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o gcc_graphs + - g++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined graphs.cpp -o gcc_graphs - ./gcc_graphs - - clang++ -Wall -g -Og -fsanitize=address,undefined,integer tables.cpp -o clang_tables + - clang++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined,integer tables.cpp -o clang_tables - ./clang_tables - - clang++ -Wall -g -Og -fsanitize=address,undefined,integer graphs.cpp -o clang_graphs + - clang++ -std=c++17 -Wall -g -Og -fsanitize=address,undefined,integer graphs.cpp -o clang_graphs - ./clang_graphs - cppcheck --enable=all . diff --git a/graphs.hpp b/graphs.hpp index 3dc7f92..79f0ae4 100644 --- a/graphs.hpp +++ b/graphs.hpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include