diff --git a/aqemu.spec b/aqemu.spec index 434e9db..53629cd 100644 --- a/aqemu.spec +++ b/aqemu.spec @@ -15,6 +15,9 @@ Patch1: aqemu-0.8.2-qt48.patch # Patch to build if "-Werror=format-security" flag is used. # https://fedoraproject.org/wiki/Format-Security-FAQ for more information. Patch2: aqemu-0.8.2-format-security.patch +# Patch to build successfully with GCC6. +# https://fedoraproject.org/wiki/Changes/GCC6 for more information. +Patch3: gcc6-compat.patch BuildRequires: qt-devel BuildRequires: cmake BuildRequires: libvncserver-devel diff --git a/gcc6-compat.patch b/gcc6-compat.patch new file mode 100644 index 0000000..cc38fb7 --- /dev/null +++ b/gcc6-compat.patch @@ -0,0 +1,11 @@ +--- a/Main_Window.cpp 2011-07-26 15:30:16.000000000 -0400 ++++ b/Main_Window.cpp 2016-02-24 06:46:46.000000000 -0500 +@@ -213,7 +213,7 @@ + if( ! Save_Settings() ) + { + AQGraphic_Error( "void Main_Window::closeEvent( QCloseEvent *event )", +- tr("Cannot Save Settings!"), false ); ++ tr("Cannot Save Settings!"), NULL ); + } + else + {