gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../src -DLOCALEDIR=\"/usr/share/locale\" -DAPP_DATADIR=\"/usr/share\" -DIMAGE_DIR=\"/usr/share/images/gtkam\" -Wall -Wmissing-declarations -Wmissing-prototypes -g -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
gtkam-preview.c: In function ‘download_captured_image’: gtkam-preview.c:191:9: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]prototypes -g -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
191 | GTimeVal time;
| ^~~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
580 | struct _GTimeVal
| ^~~~~~~~~
gtkam-preview.c:197:9: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
197 | g_get_current_time(&time);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
from /usr/include/glib-2.0/glib.h:56: /usr/include/glib-2.0/glib/gmain.h:728:8: note: declared here
728 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
gtkam-preview.c:199:9: warning: ‘g_time_val_to_iso8601’ is deprecated: Use 'g_date_time_format' instead [-Wdeprecated-declarations]
199 | time_s = g_time_val_to_iso8601(&time);
| ^~~~~~
In file included from /usr/include/glib-2.0/glib.h:92: /usr/include/glib-2.0/glib/gtimer.h:75:10: note: declared here
75 | gchar* g_time_val_to_iso8601 (GTimeVal *time_) G_GNUC_MALLOC;
| ^~~~~~~~~~~~~~~~~~~~~
gtkam-preview.c: In function ‘timeout_func’:
gtkam-preview.c:267:42: warning: pointer targets in passing argument 2 of ‘gdk_pixbuf_loader_write’ differ in signedness [-Wpointer-sign]
267 | gdk_pixbuf_loader_write (loader, data, size, NULL);
| ^~~~
| |
| const char *
In file included from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:39,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:28,
from /usr/include/gtk-2.0/gdk/gdk.h:33,
from /usr/include/gtk-2.0/gtk/gtkaccelgroup.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:35: /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:92:72: note: expected ‘const guchar *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’
92 | const guchar *buf,
| ~~~~~~~~~~~~~~~~~^~~
gtkam-preview.c:276:20: warning: Deprecated pre-processor symbol: replace with "g_main_context_pending"
276 | while (g_main_pending ())
| ^~~~~~~~~~~~~~
gtkam-preview.c:277:27: warning: Deprecated pre-processor symbol: replace with "g_main_context_iteration"
277 | g_main_iteration (TRUE);
| ^~~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbox.h:35,
from /usr/include/gtk-2.0/gtk/gtkhbox.h:35,
from gtkam-status.h:23,
from gtkam-status.c:19: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from ./gtkam-context.h:23,
from gtkam-status.h:22: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
gtkam-save.c: In function ‘on_ok_clicked’:
gtkam-save.c:535:30: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare]
535 | (!result < 0))
| ^
gtkam-save.c:535:30: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gtkam-save.c:535:22: note: add parentheses around left hand side expression to silence this warning
535 | (!result < 0))
| ^~~~~~~
| ( )
gtkam-save.c:542:30: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare]
542 | (!result < 0))
| ^
gtkam-save.c:542:30: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gtkam-save.c:542:22: note: add parentheses around left hand side expression to silence this warning
542 | (!result < 0))
| ^~~~~~~
| ( )
gtkam-save.c:548:30: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare]
548 | (!result < 0))
| ^
gtkam-save.c:548:30: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gtkam-save.c:548:22: note: add parentheses around left hand side expression to silence this warning
548 | (!result < 0))
| ^~~~~~~
| ( )
gtkam-save.c:554:30: warning: comparison of constant ‘0’ with boolean expression is always false [-Wbool-compare]
554 | (!result < 0))
| ^
gtkam-save.c:554:30: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
gtkam-save.c:554:22: note: add parentheses around left hand side expression to silence this warning
554 | (!result < 0))
| ^~~~~~~
| ( )
gtkam-preview.c: In function ‘on_direct_download_toggled’: gtkam-preview.c:443:17: error: implicit declaration of function ‘gp_setting_set’; did you mean ‘g_settings_set’? [-Werror=implicit-function-declaration]
443 | gp_setting_set ("gtkam-preview", "direct_download", "0");
| ^~~~~~~~~~~~~~
| g_settings_set
gtkam-preview.c:439:25: warning: unused variable ‘dialog’ [-Wunused-variable]
439 | GtkFileChooser *dialog;
| ^~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../src -DLOCALEDIR=\"/usr/share/locale\" -DAPP_DATADIR=\"/usr/share\" -DIMAGE_DIR=\"/usr/share/images/gtkam\" -Wall -Wmissing-declarations -Wmissing-
gtkam-preview.c: In function ‘gtkam_preview_new’:prototypes -g -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
gtkam-preview.c:563:13: error: implicit declaration of function ‘gp_setting_get’; did you mean ‘gdk_setting_get’? [-Werror=implicit-function-declaration]
563 | if (gp_setting_get ("gtkam-preview", "download_folder", buf) == GP_OK) {
| ^~~~~~~~~~~~~~
| gdk_setting_get
gtkam-preview.c:564:61: warning: passing argument 1 of ‘gtk_file_chooser_set_filename’ from incompatible pointer type [-Wincompatible-pointer-types]
564 | gtk_file_chooser_set_filename (preview->priv->button_file, buf);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~
| |
| GtkFileChooserButton * {aka struct _GtkFileChooserButton *}
In file included from /usr/include/gtk-2.0/gtk/gtk.h:88,
from /usr/include/gtk-2.0/gtk/gtkpixmap.h:32,
from gtkam-preview.c:40: /usr/include/gtk-2.0/gtk/gtkfilechooser.h:164:63: note: expected ‘GtkFileChooser *’ {aka ‘struct _GtkFileChooser *’} but argument is of type ‘GtkFileChooserButton *’ {aka ‘struct _GtkFileChooserButton *’}
164 | gboolean gtk_file_chooser_set_filename (GtkFileChooser *chooser,
| ~~~~~~~~~~~~~~~~^~~~~~~ gtkam-status.c: In function ‘message_func’:
gtkam-status.c:144:22: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
144 | GtkamStatus *status = GTKAM_STATUS (data);
| ^~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtktreeview.h:27,
from gtkam-tree.h:24,
from gtkam-tree.c:21: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:34: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:126,
from /usr/include/gtk-2.0/gtk/gtkfilesel.h:32,
from gtkam-tree.c:36: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
580 | struct _GTimeVal
| ^~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../src -DLOCALEDIR=\"/usr/share/locale\" -DAPP_DATADIR=\"/usr/share\" -DIMAGE_DIR=\"/usr/share/images/gtkam\" -Wall -Wmissing-declarations -Wmissing-
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from gtkam-util.h:25,
from gtkam-util.c:19: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:32,
from gtkam-util.h:24: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from ./gtkam-dialog.h:22,
from gtkam-viewer.h:22,
from gtkam-viewer.c:21: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtkaccelgroup.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:35: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
gtkam-util.c: In function ‘gdk_pixbuf_new_from_camera_file’: gtkam-util.c:41:47: warning: pointer targets in passing argument 2 of ‘gdk_pixbuf_loader_write’ differ in signedness [-Wpointer-sign]
41 | if (!gdk_pixbuf_loader_write (loader, data, size, NULL)) {
| ^~~~
| |
| const char *
In file included from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:39: /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:92:72: note: expected ‘const guchar *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’
92 | const guchar *buf,
| ~~~~~~~~~~~~~~~~~^~~
gtkam-viewer.c: In function ‘timeout_func’:
gtkam-viewer.c:208:61: warning: pointer targets in passing argument 2 of ‘gdk_pixbuf_loader_write’ differ in signedness [-Wpointer-sign]
208 | gdk_pixbuf_loader_write (v->priv->loader, d + v->priv->size,
| ~~^~~~~~~~~~~~~~~
| |
| const char *
In file included from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:39,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:37,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:28,
from /usr/include/gtk-2.0/gdk/gdk.h:33: /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h:92:72: note: expected ‘const guchar *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’
92 | const guchar *buf,
| ~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
make[3]: *** [Makefile:972: libgtkam_a-gtkam-preview.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:18:34 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,948 |