diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 74956896..fe1af838 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,6 +14,7 @@ get_target_property(DOCTEST_INCLUDE_DIRS doctest INTERFACE_INCLUDE_DIRECTORIES) target_include_directories(doctest SYSTEM INTERFACE ${DOCTEST_INCLUDE_DIRS}) add_subdirectory(install) +set_target_warnings(test-sfml-install) add_library(sfml-test-main STATIC TestUtilities/SystemUtil.hpp diff --git a/test/install/Install.cpp b/test/install/Install.cpp index 51d58336..1647827a 100644 --- a/test/install/Install.cpp +++ b/test/install/Install.cpp @@ -6,32 +6,32 @@ int main() { // Audio - sf::InputSoundFile input_sound_file; - sf::Listener listener; - sf::Music music; - sf::Sound sound; + [[maybe_unused]] sf::InputSoundFile inputSoundFile; + [[maybe_unused]] sf::Listener listener; + [[maybe_unused]] sf::Music music; + [[maybe_unused]] sf::Sound sound; // Graphics - sf::Color color; - sf::Font font; - sf::RenderWindow render_window; - sf::Sprite sprite; - sf::Vertex vertex; + [[maybe_unused]] sf::Color color; + [[maybe_unused]] sf::Font font; + [[maybe_unused]] sf::RenderWindow renderWindow; + [[maybe_unused]] sf::Sprite sprite; + [[maybe_unused]] sf::Vertex vertex; // Network - sf::Ftp ftp; - sf::Http http; - sf::Packet packet; - sf::UdpSocket udp_socket; + [[maybe_unused]] sf::Ftp ftp; + [[maybe_unused]] sf::Http http; + [[maybe_unused]] sf::Packet packet; + [[maybe_unused]] sf::UdpSocket udpSocket; // System - sf::Angle angle; - sf::FileInputStream file_input_stream; - sf::String string; - sf::Time time; + [[maybe_unused]] sf::Angle angle; + [[maybe_unused]] sf::FileInputStream fileInputStream; + [[maybe_unused]] sf::String string; + [[maybe_unused]] sf::Time time; // Window - sf::Context context; - sf::VideoMode video_mode; - sf::Window window; + [[maybe_unused]] sf::Context context; + [[maybe_unused]] sf::VideoMode videoMode; + [[maybe_unused]] sf::Window window; }