denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Compiling with -Werror=format-security


From: Andreas Schneider
Subject: Re: [Denemo-devel] Compiling with -Werror=format-security
Date: Sat, 08 Mar 2014 09:57:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

Thanks. Now I get some more of those in exportlilypond.c:

gcc -DHAVE_CONFIG_H -I. -I..    -I../intl -I../include
-I../libs/libsffile -I../pixmaps -DPREFIX=\"/usr\" -DBINDIR=\"/usr/bin\"
-DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc/denemo/\"
-DPKGDATADIR=\"/usr/share/denemo/\" -DDATAROOTDIR=\"/usr/share/\"
-DPKGNAME=\"denemo\" -DG_LOG_DOMAIN=\"Denemo\"  -D_FORTIFY_SOURCE=2  -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security     -D_WITH_AUBIO_4_ -I/usr/include/aubio
-D_WITH_AUBIO_3_ -I/usr/include/libxml2   -pthread
-I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo
-I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/freetype2
    -pthread -lgthread-2.0 -lrt -lglib-2.0   -lsndfile
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/libpng12   -pthread
-I/usr/include/gtksourceview-3.0 -I/usr/include/libxml2
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/libpng12   -pthread
-I/usr/include/gtk-3.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/freetype2
-I/usr/include/pixman-1 -I/usr/include/libpng12
-I/usr/include/evince/3.0   -DUSE_EVINCE -D_HAVE_FLUIDSYNTH_
-D_HAVE_RUBBERBAND_   -D_HAVE_PORTAUDIO_ -pthread     -D_HAVE_PORTMIDI_
-D_HAVE_X11_ -c exportlilypond.c
exportlilypond.c: In function ‘outputStaff’:
exportlilypond.c:1942:37: error: format not a string literal and no
format arguments [-Werror=format-security]
exportlilypond.c:1944:37: error: format not a string literal and no
format arguments [-Werror=format-security]
exportlilypond.c: In function ‘populate_called’:
exportlilypond.c:2798:3: warning: passing argument 1 of
‘gtk_container_foreach’ from incompatible pointer type [enabled by default]
In file included from /usr/include/gtk-3.0/gtk/gtkbin.h:33:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:35,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../include/denemo/denemo_objects.h:13,
                 from ../include/denemo/denemo_types.h:20,
                 from ../include/denemo/denemo_api.h:24,
                 from ../include/denemo/denemo.h:30,
                 from exportlilypond.c:10:
/usr/include/gtk-3.0/gtk/gtkcontainer.h:123:10: note: expected ‘struct
GtkContainer *’ but argument is of type ‘struct GtkMenuShell *’
exportlilypond.c:2798:3: warning: passing argument 2 of
‘gtk_container_foreach’ from incompatible pointer type [enabled by default]
In file included from /usr/include/gtk-3.0/gtk/gtkbin.h:33:0,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:35,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from ../include/denemo/denemo_objects.h:13,
                 from ../include/denemo/denemo_types.h:20,
                 from ../include/denemo/denemo_api.h:24,
                 from ../include/denemo/denemo.h:30,
                 from exportlilypond.c:10:
/usr/include/gtk-3.0/gtk/gtkcontainer.h:123:10: note: expected
‘GtkCallback’ but argument is of type ‘void (*)(struct GtkWidget *)’
exportlilypond.c: In function ‘init_lilypond_buffer’:
exportlilypond.c:3119:23: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
exportlilypond.c: In function ‘create_lilywindow’:
exportlilypond.c:3136:3: warning: ‘gtk_vpaned_new’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/deprecated/gtkvpaned.h:60): Use
'gtk_paned_new' instead [-Wdeprecated-declarations]
exportlilypond.c:3137:3: warning: ‘gtk_vbox_new’ is deprecated (declared
at /usr/include/gtk-3.0/gtk/deprecated/gtkvbox.h:60): Use 'gtk_box_new'
instead [-Wdeprecated-declarations]
exportlilypond.c:3143:21: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
cc1: some warnings being treated as errors
make[3]: *** [exportlilypond.o] Fehler 1
make[3]: Leaving directory `/home/src/denemo/src'

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]