Skip to content

Does not build with archlinux / latest gcc #107

@trengrj

Description

@trengrj

See below for build failure. I think this is due to a new version of gcc. I removed Wpedantic from wscript and this fixed things but would be interested to know the root cause.

[ 1/30] c: src/util/config.c -> build/src/util/config.c.1.o
[ 2/30] c: src/util/copy_prop.c -> build/src/util/copy_prop.c.1.o
[ 3/30] c: src/util/gdk_helpers.c -> build/src/util/gdk_helpers.c.1.o
In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkx.h:28,
                 from ../src/util/gdk_helpers.h:1,
                 from ../src/util/gdk_helpers.c:2:
/usr/include/glib-2.0/gobject/gparam.h:166:33: error: enumerator value for ‘G_PARAM_DEPRECATED’ is not an integer constant expression [-Werror=pedantic]
   G_PARAM_DEPRECATED          = 1 << 31
                                 ^
cc1: all warnings being treated as errors
In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkx.h:28,
                 from /home/trengrj/build/candybar/src/candybar.h:5,
                 from ../src/util/config.h:1,
                 from ../src/util/config.c:1:
/usr/include/glib-2.0/gobject/gparam.h:166:33: error: enumerator value for ‘G_PARAM_DEPRECATED’ is not an integer constant expression [-Werror=pedantic]
   G_PARAM_DEPRECATED          = 1 << 31
                                 ^
cc1: all warnings being treated as errors
Waf: Leaving directory `/home/user/build/candybar/build'
Build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions