diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2008-12-31 23:48:01 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2008-12-31 23:48:01 +0000 |
commit | 953d02c32d998c499a0900007e9979681a1c2994 (patch) | |
tree | 479c10f674ec86611df7dc243212dd3070c8edb1 /libtiff/tiffio.h | |
parent | 968401fdf3a334747f92fd22e1131b213d734bac (diff) | |
download | libtiff-git-953d02c32d998c499a0900007e9979681a1c2994.tar.gz |
* libtiff/tiffio.h: GCC will now validate format specifications
for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
TIFFWarningExt() in order to reveal bugs.
* Many fixes throughout to work better as a 64-bit build.
Diffstat (limited to 'libtiff/tiffio.h')
-rw-r--r-- | libtiff/tiffio.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libtiff/tiffio.h b/libtiff/tiffio.h index 2139cfa3..49392f03 100644 --- a/libtiff/tiffio.h +++ b/libtiff/tiffio.h @@ -1,4 +1,4 @@ -/* $Id: tiffio.h,v 1.83 2008-12-30 00:39:22 bfriesen Exp $ */ +/* $Id: tiffio.h,v 1.84 2008-12-31 23:48:02 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -263,6 +263,10 @@ typedef struct { #define LOGLUV_PUBLIC 1 #endif +#if !defined(__GNUC__) && !defined(__attribute__) +# define __attribute__(x) /*nothing*/ +#endif + #if defined(c_plusplus) || defined(__cplusplus) extern "C" { #endif @@ -433,10 +437,10 @@ extern TIFF* TIFFClientOpen(const char*, const char*, TIFFMapFileProc, TIFFUnmapFileProc); extern const char* TIFFFileName(TIFF*); extern const char* TIFFSetFileName(TIFF*, const char *); -extern void TIFFError(const char*, const char*, ...); -extern void TIFFErrorExt(thandle_t, const char*, const char*, ...); -extern void TIFFWarning(const char*, const char*, ...); -extern void TIFFWarningExt(thandle_t, const char*, const char*, ...); +extern void TIFFError(const char*, const char*, ...) __attribute__((format (printf,2,3))); +extern void TIFFErrorExt(thandle_t, const char*, const char*, ...) __attribute__((format (printf,3,4))); +extern void TIFFWarning(const char*, const char*, ...) __attribute__((format (printf,2,3))); +extern void TIFFWarningExt(thandle_t, const char*, const char*, ...) __attribute__((format (printf,3,4))); extern TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler); extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt); extern TIFFErrorHandler TIFFSetWarningHandler(TIFFErrorHandler); |