From f9b0620d50807183ec4fc932ca56e5d4c815f484 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 16 Jul 2022 17:16:49 -0700 Subject: Updated to 2022-07-11-1024. Add gcc12 support hotfix. Disable several non-existent build flags to reduce build warnings. --- hotfix-01_gcc12-support.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hotfix-01_gcc12-support.patch (limited to 'hotfix-01_gcc12-support.patch') diff --git a/hotfix-01_gcc12-support.patch b/hotfix-01_gcc12-support.patch new file mode 100644 index 0000000..a20eeb9 --- /dev/null +++ b/hotfix-01_gcc12-support.patch @@ -0,0 +1,17 @@ +--- a/src/sdl_font.cpp ++++ b/src/sdl_font.cpp +@@ -12,12 +12,12 @@ + { + const TTF_Font_Ptr fnt( TTF_OpenFontIndex( f.c_str(), size, faceIndex ) ); + if( fnt ) { +- char *style = TTF_FontFaceStyleName( fnt.get() ); ++ const char *style = TTF_FontFaceStyleName( fnt.get() ); + if( style != nullptr ) { + int faces = TTF_FontFaces( fnt.get() ); + for( int i = faces - 1; i >= 0; i-- ) { + const TTF_Font_Ptr tf( TTF_OpenFontIndex( f.c_str(), size, i ) ); +- char *ts = nullptr; ++ const char *ts = nullptr; + if( tf ) { + if( nullptr != ( ts = TTF_FontFaceStyleName( tf.get() ) ) ) { + if( lcequal( ts, style ) && TTF_FontHeight( tf.get() ) <= size ) { -- cgit v1.2.1