GNOME Bugzilla – Bug 730408
Renable compiler warnings and fix a few that show up
Last modified: 2014-05-20 00:52:03 UTC
The switch to GNOME_COMPILE_WARNINGS() caused -Wall and other warnings to not actually be used since GNOME_COMPILE_WARNINGS() just sets WARN_CFLAGS. Add WARN_CFLAGS to AM_CFLAGS so that it takes effect. Add -Wno-error=deprecated-declarations so that when -Werror is enabled, we don't fail on all the deprecated cogl and clutter symbols.
Created attachment 276808 [details] [review] Renable compiler warnings and fix a few that show up
Review of attachment 276808 [details] [review]: ::: src/st/st-box-layout-child.c @@ +94,3 @@ break; case CLUTTER_BOX_ALIGNMENT_END: align = ST_ALIGN_END; Missing a break here? ::: src/st/st-texture-cache.c @@ +22,3 @@ #include "config.h" +#define COGL_ENABLE_EXPERIMENTAL_API /* for cogl_framebuffer_allocate */ I thought we enabled this globally? Or is that just for mutter?
Review of attachment 276808 [details] [review]: ::: src/st/st-box-layout-child.c @@ +94,3 @@ break; case CLUTTER_BOX_ALIGNMENT_END: align = ST_ALIGN_END; Ouch, good catch. ::: src/st/st-texture-cache.c @@ +22,3 @@ #include "config.h" +#define COGL_ENABLE_EXPERIMENTAL_API /* for cogl_framebuffer_allocate */ Just for Mutter.
Pushed with the missign break added. Attachment 276808 [details] pushed as ff07d3a - Renable compiler warnings and fix a few that show up