Skip to content

Commit

Permalink
Fix all warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanilov committed Apr 7, 2024
1 parent e2cf74f commit ca50d9d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/checkout@v2
with:
submodules: true

- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest
- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@
"locale": "cpp",
"mutex": "cpp",
"ratio": "cpp",
"variant": "cpp"
"variant": "cpp",
"any": "cpp",
"charconv": "cpp",
"condition_variable": "cpp",
"csignal": "cpp",
"span": "cpp"
},
"editor.tabSize": 2
}
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 3.13)
project(CrackingCoding)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)

enable_testing()

Expand Down
2 changes: 2 additions & 0 deletions src/04_trees_and_graphs/first_common_ancestor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// in a data structure. NOTE: This is not necessarily a binary search tree.
// Hints: # 10, #16, #28, #36, #46, #70, #80, #96

#include <cmath>

#include "utils/tree.h"

using namespace utils;
Expand Down

0 comments on commit ca50d9d

Please sign in to comment.