Skip to content

Extra ';' in Consolekit and Systemd header files

When compiling a program that includes libxfce4util and pedantic warnings are enabled, the following warnings will be emitted:

/usr/local/include/xfce4/libxfce4util/xfce-consolekit.h:35:82: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic]
   35 | G_DECLARE_FINAL_TYPE (XfceConsolekit, xfce_consolekit, XFCE, CONSOLEKIT, GObject);
      |                                                                                  ^
In file included from /usr/local/include/xfce4/libxfce4util/libxfce4util.h:41:
/usr/local/include/xfce4/libxfce4util/xfce-systemd.h:34:73: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic]
   34 | G_DECLARE_FINAL_TYPE (XfceSystemd, xfce_systemd, XFCE, SYSTEMD, GObject);
      |                                                                         ^