From 488b3de2f438875904e9f1f4fbc922ef8598fd82 Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Sat, 14 Oct 2023 08:20:27 -0700 Subject: [PATCH] jpegmarker.h: Move extern to the front for jpeg_special_marker_type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found with `-Wextra` using gcc 13.2.0: ``` jpegmarker.h:18:1: warning: ‘extern’ is not at beginning of declaration [-Wold-style-declaration] 18 | const extern struct jpeg_special_marker_type jpeg_special_marker_types[]; | ^~~~~ ``` --- jpegmarker.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jpegmarker.h b/jpegmarker.h index f9b71f0..46ee6db 100644 --- a/jpegmarker.h +++ b/jpegmarker.h @@ -14,9 +14,7 @@ struct jpeg_special_marker_type { char *ident_str; }; - -const extern struct jpeg_special_marker_type jpeg_special_marker_types[]; - +extern const struct jpeg_special_marker_type jpeg_special_marker_types[]; const char* jpeg_marker_name(unsigned int marker); const char* jpeg_special_marker_name(jpeg_saved_marker_ptr marker);