From d5612756b98afa43443a210722691c2e07ddfd5c Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Feb 2022 20:03:13 +0100 Subject: refactor: add compiler warnings --- src/app/maze.tpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/app/maze.tpp') diff --git a/src/app/maze.tpp b/src/app/maze.tpp index f0098a1..12422c3 100644 --- a/src/app/maze.tpp +++ b/src/app/maze.tpp @@ -8,6 +8,8 @@ #include #include +namespace +{ /** * Returns the neighbours of a position in a maze. * @@ -97,6 +99,7 @@ void pos_to_between(const std::shared_ptr &between_pos, unsigned int co *between_pos -= diff; } } +} // namespace template void matrix_to_maze(Matrix *matrix, std::shared_ptr start_pos, -- cgit v1.2.3-18-g5258