Skip to content

Commit b5fa233

Browse files
committed
Suppress libpng warnings
Issue #6
1 parent 200bf5d commit b5fa233

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
22
set(CMAKE_CXX_STANDARD 14)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4-
cmake_policy(SET CMP0074 OLD)
4+
# cmake_policy(SET CMP0074 OLD)
55
cmake_policy(SET CMP0057 NEW)
66
cmake_policy(SET CMP0091 NEW) # to enable CMAKE_MSVC_RUNTIME_LIBRARY
77

main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ bool App::OnInit()
141141

142142
wxImage::AddHandler(new rotatingJPEGHandler());
143143
wxImage::AddHandler(new wxPNGHandler());
144+
wxImage::SetDefaultLoadFlags(wxImage::GetDefaultLoadFlags() & ~wxImage::Load_Verbose);
144145

145146
m_icons = wxIconBundle("APP_ICON", 0);
146147

0 commit comments

Comments
 (0)