From d3f5d40d4bacb00265b97779bec8b18a8ce3be6d Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Tue, 27 Oct 2020 07:59:08 +0100 Subject: [PATCH] Fixed an error reported by gcc on Fedora about format-security (#373) This fixes something that is neither invalid nor a security vulnerability, Still, distros other than Fedora may decide to report it in the future as an error too. So we are getting ahead of them. --- src/SDL/MyOpenGLView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL/MyOpenGLView.m b/src/SDL/MyOpenGLView.m index 6691a245..4db24968 100644 --- a/src/SDL/MyOpenGLView.m +++ b/src/SDL/MyOpenGLView.m @@ -324,7 +324,7 @@ MA 02110-1301, USA. } int testAttrib = -1; - OOLog(@"display.initGL", @"Achieved color / depth buffer sizes (bits):"); + OOLog(@"display.initGL", @"%@", @"Achieved color / depth buffer sizes (bits):"); SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &testAttrib); OOLog(@"display.initGL", @"Red: %d", testAttrib); SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &testAttrib);