Bug 2936

Summary: gcc-8 (Fedora 28) and GTK+
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: config-storeAssignee: Tom Henderson <tomh>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: ns-3.28   
Hardware: All   
OS: All   
See Also: https://www.nsnam.org/bugzilla/show_bug.cgi?id=2938

Description Tom Henderson 2018-06-21 19:51:11 UTC
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/﷒0https://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.
Comment 1 Tom Henderson 2018-07-22 17:28:00 UTC
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...
Comment 2 Tom Henderson 2018-08-07 00:53:59 UTC
fixed in changeset 13722:6fb964c157bd
Comment 3 Tom Henderson 2018-08-07 00:56:38 UTC
(In reply to Tom Henderson from comment #2)
> fixed in changeset 13722:6fb964c157bd

correction:  changeset 13725:2448e59305bd