feat: Added compilation flags

This commit is contained in:
PolishPigeon 2022-01-22 11:29:33 +01:00 committed by KRZYSZTOF RUDNICKI
parent a9a94b8f43
commit 87fa613263
4 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -99,6 +99,8 @@ void Game::processEvents()
case sf::Event::Closed:
mWindow.close();
break;
default:
break;
}
}
}

Binary file not shown.

View File

@ -1,5 +1,8 @@
CXXFLAGS = -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wwrite-strings -Wcast-qual -Wunreachable-code -pedantic -Wswitch-default
# https://stackoverflow.com/a/3376483
compile:./game.cpp
g++ -c ./game.cpp
g++ $(CXXFLAGS) -c ./game.cpp
g++ game.o -o app -lsfml-graphics -lsfml-window -lsfml-system
run: