warning: unnecessary parentheses in declaration of
Hi,
I've been compiling Rawtherapee from the commandline for ages, and with moving to Manjaro:
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=17.1.10
DISTRIB_CODENAME=Hakoila
DISTRIB_DESCRIPTION="Manjaro Linux"
Lately I've started to see warnings during the compilation. The warnings are for two .h files:
In file included from /usr/include/gtk-3.0/gtk/gtk.h:271,
from /usr/include/gtkmm-3.0/gtkmm/enums.h:28,
from /usr/include/gtkmm-3.0/gtkmm/widget.h:47,
from /usr/include/gtkmm-3.0/gtkmm/action.h:31,
from /usr/include/gtkmm-3.0/gtkmm/toggleaction.h:29,
from /usr/include/gtkmm-3.0/gtkmm.h:95,
from /home/pete/repo-rt/rtgui/xtransprocess.h:22,
from /home/pete/repo-rt/rtgui/xtransprocess.cc:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:74:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Wparentheses]
void (*__gtk_reserved1);
^
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:75:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Wparentheses]
void (*__gtk_reserved2);
^
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Wparentheses]
void (*__gtk_reserved3);
^
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Wparentheses]
void (*__gtk_reserved4);
and here:
In file included from /usr/include/gtk-3.0/gtk/gtk.h:100,
from /usr/include/gtkmm-3.0/gtkmm/enums.h:28,
from /usr/include/gtkmm-3.0/gtkmm/widget.h:47,
from /usr/include/gtkmm-3.0/gtkmm/action.h:31,
from /usr/include/gtkmm-3.0/gtkmm/toggleaction.h:29,
from /usr/include/gtkmm-3.0/gtkmm.h:95,
from /home/pete/repo-rt/rtgui/xtransprocess.h:22,
from /home/pete/repo-rt/rtgui/xtransprocess.cc:20:
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:66:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Wparentheses]
void (*__gtk_reserved1);
^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:67:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Wparentheses]
void (*__gtk_reserved2);
^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:68:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Wparentheses]
void (*__gtk_reserved3);
^
/usr/include/gtk-3.0/gtk/gtkfilechooserbutton.h:69:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Wparentheses]
void (*__gtk_reserved4);
All in all, not a big deal, but thought it might be worth raising for awareness.
Peter.