From 1fb9f3dcf18b2aff35dcb7a8f6fa4a6c756efb75 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 22 Feb 2024 13:58:19 -0800 Subject: [PATCH] gifdec: fix ErrorGIFNotAvailable() declaration A void parameter list should be (void), not (). Fixes a -Wstrict-prototypes warning. Change-Id: I180efbf7c58956695359320072cce1171d79e377 --- configure.ac | 1 + examples/gifdec.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 651c6e9d..128c3633 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,7 @@ TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wold-style-definition]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wparentheses-equality]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wshadow]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wshorten-64-to-32]) +TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wstrict-prototypes]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wundef]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wunreachable-code-aggressive]) TEST_AND_ADD_CFLAGS([AM_CFLAGS], [-Wunreachable-code]) diff --git a/examples/gifdec.c b/examples/gifdec.c index 99ee9966..9b9a6947 100644 --- a/examples/gifdec.c +++ b/examples/gifdec.c @@ -317,7 +317,7 @@ void GIFDisplayError(const GifFileType* const gif, int gif_error) { #else // !WEBP_HAVE_GIF -static void ErrorGIFNotAvailable() { +static void ErrorGIFNotAvailable(void) { fprintf(stderr, "GIF support not compiled. Please install the libgif-dev " "package before building.\n"); }