summaryrefslogtreecommitdiff
path: root/src/gd_tiff.c
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-22 22:43:26 -0700
committerKhem Raj <raj.khem@gmail.com>2022-08-23 08:59:29 -0700
commit7dae72496749f6d059e191e39fdfbf3de4025cac (patch)
treec6f261156ca127bfabfe932df9e311238921f386 /src/gd_tiff.c
parentdbe3001a125003adb553b9e1cd9443353b1df56a (diff)
downloadlibgd-7dae72496749f6d059e191e39fdfbf3de4025cac.tar.gz
Fix deprecared function prototypes
Fixes following errors: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'src/gd_tiff.c')
-rw-r--r--src/gd_tiff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gd_tiff.c b/src/gd_tiff.c
index 7f72b61..3d90e61 100644
--- a/src/gd_tiff.c
+++ b/src/gd_tiff.c
@@ -446,9 +446,7 @@ BGD_DECLARE(void) gdImageTiffCtx(gdImagePtr image, gdIOCtx *out)
}
/* Check if we are really in 8bit mode */
-static int checkColorMap(n, r, g, b)
-int n;
-uint16_t *r, *g, *b;
+static int checkColorMap(int n, uint16_t *r, uint16_t *g, uint16_t *b)
{
while (n-- > 0)
if (*r++ >= 256 || *g++ >= 256 || *b++ >= 256)