]> code.delx.au - gnu-emacs/commitdiff
Port to GTK with strict C99 compiler
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Mar 2016 06:45:02 +0000 (23:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Mar 2016 06:45:23 +0000 (23:45 -0700)
* src/emacsgtkfixed.c: Use workaround for GNOME bug 683906 only
in glib 2.35.6 and earlier, since the bug is fixed in 2.35.7.
* src/emacsgtkfixed.c (EmacsFixedPrivate):
* src/emacsgtkfixed.h (EmacsFixedClass):
Remove duplicate typedef, which strict C99 does not allow (Bug#23003).

src/emacsgtkfixed.c
src/emacsgtkfixed.h

index cebd7b613c72aab281313bb101c78df56324746d..ca0bbfbb86682f28b8f13ddbfd3497ed8f7dd7c9 100644 (file)
@@ -27,13 +27,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "emacsgtkfixed.h"
 
 /* Silence a bogus diagnostic; see GNOME bug 683906.  */
-#if 4 < __GNUC__ + (7 <= __GNUC_MINOR__)
+#if 4 < __GNUC__ + (7 <= __GNUC_MINOR__) && ! GLIB_CHECK_VERSION (2, 35, 7)
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wunused-local-typedefs"
 #endif
 
 typedef struct _EmacsFixed EmacsFixed;
-typedef struct _EmacsFixedPrivate EmacsFixedPrivate;
 typedef struct _EmacsFixedClass EmacsFixedClass;
 
 struct _EmacsFixedPrivate
index 3d6a76ab5708dcbdca6e1ee2012b5de60d777109..0d09525e02a579f0b97fb9f80bcd03cd26fd8716 100644 (file)
@@ -30,7 +30,6 @@ G_BEGIN_DECLS
 struct frame;
 
 typedef struct _EmacsFixedPrivate       EmacsFixedPrivate;
-typedef struct _EmacsFixedClass         EmacsFixedClass;
 
 struct _EmacsFixed
 {