From f67143776c5448fe515d85a6a328c7d8d760e009 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 18 Mar 2010 12:47:30 -0700 Subject: [PATCH] Avoid 122 warnings from gcc4.4: dereferencing type-punned pointer will break strict-aliasing rules --- src/microcode/x11.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/microcode/x11.h b/src/microcode/x11.h index 472849f08..37baacfe8 100644 --- a/src/microcode/x11.h +++ b/src/microcode/x11.h @@ -199,11 +199,7 @@ struct xwindow int move_offset_x; int move_offset_y; -#ifdef __GNUC__ - void * extra [0]; -#else - void * extra [1]; -#endif + void * extra; }; #define XW_ALLOCATION_INDEX(xw) ((xw) -> allocation_index) -- 2.25.1