Arch Linux build error
Getting this error at build stage x86_64 Linux 4.14.52-1-lts
[ 67%] Built target libcef_dll_wrapper [ 67%] Building CXX object brick/CMakeFiles/brick.dir/client_handler_linux.cc.o In file included from /usr/include/gtk-2.0/gtk/gtk.h:89, from /home/user/tmp/brick/brick/client_handler_linux.cc:5: /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses] void (*__gtk_reserved1); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:60:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Werror=parentheses] void (*__gtk_reserved2); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:61:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Werror=parentheses] void (*__gtk_reserved3); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:62:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Werror=parentheses] void (*__gtk_reserved4); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:63:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved5’ [-Werror=parentheses] void (*__gtk_reserved5); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:64:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved6’ [-Werror=parentheses] void (*__gtk_reserved6); ^ /usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved7’ [-Werror=parentheses] void (*__gtk_reserved7); ^ In file included from /usr/include/gtk-2.0/gtk/gtk.h:173, from /home/user/tmp/brick/brick/client_handler_linux.cc:5: /usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Werror=parentheses] void (*__gtk_reserved1); ^ /usr/include/gtk-2.0/gtk/gtkstatusicon.h:77:8: error: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Werror=parentheses] void (*__gtk_reserved2); ^ cc1plus: all warnings being treated as errors make[2]: *** [brick/CMakeFiles/brick.dir/build.make:209: brick/CMakeFiles/brick.dir/client_handler_linux.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:141: brick/CMakeFiles/brick.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
For anyone that stumbles upon this: build works fine even without the attached PR if -wError flags are removed. They are "just" warnings after all.