Commit 099bc232 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

add -Wmissing-format-attribute to CFLAGS.

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().


svn path=/trunk/; revision=27316
parent fc4081ba
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().
2008-10-18 Michael Natterer <mitch@gimp.org>
* configure.in: add -Wstrict-prototypes to CFLAGS.
......
......@@ -342,6 +342,9 @@ CFLAGS="$CFLAGS $extra_warnings"
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.
......
......@@ -841,6 +841,10 @@ save_as_ncsa(gpointer param, OutputFunc_t output)
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, ...)
{
......
......@@ -47,7 +47,7 @@ struct Object_t {
};
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;
......
......@@ -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, ...)
{
......
......@@ -37,7 +37,7 @@ typedef struct {
} 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment