Skip to content

Commit

Permalink
fix a C++11 gcc warning in a library header
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Nov 23, 2014
1 parent 4281c60 commit 136fdbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SDL_SavePNG/savepng.cpp
Expand Up @@ -5,7 +5,11 @@
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
*/
#include <SDL.h>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wliteral-suffix" //GCC 4.9 with C++11 gives a warning about this in libpng header
#include <png.h>
#pragma GCC diagnostic pop

#include "savepng.h"

Expand Down

0 comments on commit 136fdbf

Please sign in to comment.