gimp r27316 - in trunk: . plug-ins/imagemap



Author: mitch
Date: Sat Oct 18 23:05:56 2008
New Revision: 27316
URL: http://svn.gnome.org/viewvc/gimp?rev=27316&view=rev

Log:
2008-10-19  Michael Natterer  <mitch gimp org>

	* configure.in: add -Wmissing-format-attribute to CFLAGS.

	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_object.h
	* plug-ins/imagemap/imap_source.c
	* plug-ins/imagemap/imap_statusbar.h: add G_GNUC_PRINTF().



Modified:
   trunk/ChangeLog
   trunk/configure.in
   trunk/plug-ins/imagemap/imap_main.c
   trunk/plug-ins/imagemap/imap_object.h
   trunk/plug-ins/imagemap/imap_source.c
   trunk/plug-ins/imagemap/imap_statusbar.h

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Sat Oct 18 23:05:56 2008
@@ -342,6 +342,9 @@
 GIMP_DETECT_CFLAGS(extra_warnings, '-Wold-style-definition')
 CFLAGS="$CFLAGS $extra_warnings"
 
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-format-attribute')
+CFLAGS="$CFLAGS $extra_warnings"
+
 
 # Ensure MSVC-compatible struct packing convention is used when
 # compiling for Win32 with gcc.

Modified: trunk/plug-ins/imagemap/imap_main.c
==============================================================================
--- trunk/plug-ins/imagemap/imap_main.c	(original)
+++ trunk/plug-ins/imagemap/imap_main.c	Sat Oct 18 23:05:56 2008
@@ -841,6 +841,10 @@
    object_list_write_ncsa(_shapes, param, output);
 }
 
+static void   save_to_file (gpointer    param,
+                            const char *format,
+                            ...) G_GNUC_PRINTF(2,3);
+
 static void
 save_to_file(gpointer param, const char* format, ...)
 {

Modified: trunk/plug-ins/imagemap/imap_object.h
==============================================================================
--- trunk/plug-ins/imagemap/imap_object.h	(original)
+++ trunk/plug-ins/imagemap/imap_object.h	Sat Oct 18 23:05:56 2008
@@ -47,7 +47,7 @@
 };
 
 typedef void (*MoveSashFunc_t)(Object_t*, gint, gint);
-typedef void (*OutputFunc_t)(gpointer, const char*, ...);
+typedef void (*OutputFunc_t)(gpointer, const char*, ...) G_GNUC_PRINTF(2,3);
 
 struct AreaInfoDialog_t;
 

Modified: trunk/plug-ins/imagemap/imap_source.c
==============================================================================
--- trunk/plug-ins/imagemap/imap_source.c	(original)
+++ trunk/plug-ins/imagemap/imap_source.c	Sat Oct 18 23:05:56 2008
@@ -34,6 +34,10 @@
 
 #include "libgimp/stdplugins-intl.h"
 
+static void   save_to_view (GtkTextBuffer *buffer,
+                            const char    *format,
+                            ...) G_GNUC_PRINTF(2,3);
+
 static void
 save_to_view(GtkTextBuffer *buffer, const char* format, ...)
 {

Modified: trunk/plug-ins/imagemap/imap_statusbar.h
==============================================================================
--- trunk/plug-ins/imagemap/imap_statusbar.h	(original)
+++ trunk/plug-ins/imagemap/imap_statusbar.h	Sat Oct 18 23:05:56 2008
@@ -37,7 +37,7 @@
 } StatusBar_t;
 
 StatusBar_t *make_statusbar(GtkWidget *main_vbox, GtkWidget *window);
-void statusbar_set_status(StatusBar_t *statusbar, const gchar *format, ...);
+void statusbar_set_status(StatusBar_t *statusbar, const gchar *format, ...) G_GNUC_PRINTF(2,3);
 void statusbar_clear_status(StatusBar_t *statusbar);
 void statusbar_set_xy(StatusBar_t *statusbar, gint x, gint y);
 void statusbar_clear_xy(StatusBar_t *statusbar);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]