Bugzilla – Bug 2936
gcc-8 (Fedora 28) and GTK+
Last modified: 2018-08-07 00:56:38 EDT
Compiling ns-3 on Fedora 28 with GTK+ installed yields the following errors due to -Wparentheses: /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses] void (*__gtk_reserved1); (and other similar ones) this is an upstream GTK+ bug: https://bugzilla.redhat.com/show_bug.cgi?id=1576301 https://gitlab.gnome.org/GNOME/gtk/issues/1142 According to the latter, this is fixed in the gtk-3-22 branch. In the meantime, until newer versions of GTK+ are available, we can add some support in wscript to enable -Wno-parentheses under these conditions.
The --disable-werror patch for bug 2938 is one possible workaround, but I will create also a patch that does not require disabling Werror globally. In progress...
fixed in changeset 13722:6fb964c157bd
(In reply to Tom Henderson from comment #2) > fixed in changeset 13722:6fb964c157bd correction: changeset 13725:2448e59305bd