diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-09-06 20:42:20 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-09-06 20:42:20 +0000 |
commit | d1fabc4db183781c36b383558eb96cabb45bfc13 (patch) | |
tree | 8945c58ba1a24e301a3c9d57423698e2cf41dd15 /tools/tiffgt.c | |
parent | 897af013fbb439fc4a9f32a9876f2e8dd1ff55c3 (diff) | |
download | libtiff-git-d1fabc4db183781c36b383558eb96cabb45bfc13.tar.gz |
* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
X. Patch by Roger Leigh.
Diffstat (limited to 'tools/tiffgt.c')
-rw-r--r-- | tools/tiffgt.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/tiffgt.c b/tools/tiffgt.c index 3a0d5154..35a23ccf 100644 --- a/tools/tiffgt.c +++ b/tools/tiffgt.c @@ -1,4 +1,4 @@ -/* $Id: tiffgt.c,v 1.14 2015-06-25 02:28:01 bfriesen Exp $ */ +/* $Id: tiffgt.c,v 1.15 2015-09-06 20:42:20 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -82,6 +82,12 @@ extern char* optarg; extern int optind; #endif +/* GLUT framework on MacOS X produces deprecation warnings */ +# if defined(__GNUC__) && defined(__APPLE__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +# endif + static TIFF* tif = NULL; int @@ -408,7 +414,10 @@ raster_special(int key, int x, int y) glutPostRedisplay(); } - +/* GLUT framework on MacOS X produces deprecation warnings */ +# if defined(__GNUC__) && defined(__APPLE__) +# pragma GCC diagnostic pop +# endif char* stuff[] = { "usage: tiffgt [options] file.tif", |