From ea0b9aa5d0f26f17021e516f11ccf7b316ea1771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Sat, 18 Mar 2023 15:45:41 +0200 Subject: sna/gen2: Silence compiler warn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/sna/kgem_debug_gen2.c:625:5: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 625 | const static struct { | ^~~~~ Signed-off-by: Ville Syrjälä --- src/sna/kgem_debug_gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/kgem_debug_gen2.c b/src/sna/kgem_debug_gen2.c index 3f91c29d..a4b1b841 100644 --- a/src/sna/kgem_debug_gen2.c +++ b/src/sna/kgem_debug_gen2.c @@ -622,7 +622,7 @@ decode_3d_1c(struct kgem *kgem, uint32_t offset) int kgem_gen2_decode_3d(struct kgem *kgem, uint32_t offset) { - const static struct { + static const struct { uint32_t opcode; int min_len; int max_len; -- cgit v1.2.3