* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
X. Patch by Roger Leigh.
This commit is contained in:
parent
897af013fb
commit
d1fabc4db1
@ -1,5 +1,8 @@
|
|||||||
2015-09-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
2015-09-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||||
|
|
||||||
|
* tools/tiffgt.c: Silence glut API deprecation warnings on MacOS
|
||||||
|
X. Patch by Roger Leigh.
|
||||||
|
|
||||||
* Makefile.am: Added a 'coverity' rule to assist with Coverity
|
* Makefile.am: Added a 'coverity' rule to assist with Coverity
|
||||||
submissions.
|
submissions.
|
||||||
|
|
||||||
|
@ -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
|
* Copyright (c) 1988-1997 Sam Leffler
|
||||||
@ -82,6 +82,12 @@ extern char* optarg;
|
|||||||
extern int optind;
|
extern int optind;
|
||||||
#endif
|
#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;
|
static TIFF* tif = NULL;
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -408,7 +414,10 @@ raster_special(int key, int x, int y)
|
|||||||
glutPostRedisplay();
|
glutPostRedisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* GLUT framework on MacOS X produces deprecation warnings */
|
||||||
|
# if defined(__GNUC__) && defined(__APPLE__)
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
# endif
|
||||||
|
|
||||||
char* stuff[] = {
|
char* stuff[] = {
|
||||||
"usage: tiffgt [options] file.tif",
|
"usage: tiffgt [options] file.tif",
|
||||||
|
Loading…
Reference in New Issue
Block a user