Fixed CI.

This commit is contained in:
Teal Dulcet 2022-07-14 02:18:58 -07:00
parent 0540e54213
commit ec2b79950f
3 changed files with 7 additions and 6 deletions

View File

@ -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 .

View File

@ -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 .

View File

@ -14,6 +14,7 @@
#include <vector>
#include <iterator>
#include <numeric>
#include <functional>
#include <sys/ioctl.h>
#include <unistd.h>