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
This commit is contained in:

committed by
Michael Natterer

parent
fc4081ba21
commit
099bc23234
@ -1,3 +1,12 @@
|
||||
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);
|
||||
|
Reference in New Issue
Block a user