GNOME Bugzilla – Bug 688289
Use GNOME_COMPILE_WARNINGS([maximum])
Last modified: 2012-11-22 03:27:27 UTC
See patches.
Created attachment 228939 [details] [review] Use GNOME_COMPILE_WARNINGS([maximum]) In order to avoid getting spammed by warnings from including jsapi.h which we don't control, centralize its inclusion in one place, wrapping it with GCC pragmas to disable selected warnings.
Created attachment 228940 [details] [review] function.h: Fix prototype: () -> (void) Needed with new compiler warnings.
Review of attachment 228940 [details] [review]: Yes.
Review of attachment 228939 [details] [review]: Sure.
Attachment 228939 [details] pushed as e4d12cd - Use GNOME_COMPILE_WARNINGS([maximum]) Attachment 228940 [details] pushed as 6e17eeb - function.h: Fix prototype: () -> (void)
The header shuffling here caused bug 688617... It's not entirely clear what the story should be for applications that want to #include <gi/[something].h> since some of those headers pull in individual headers from gjs/ and those headers have single-include guards... For now it seems that #include <gjs/gjs-module.h> before including anything from gi/ will fix the problem, but probably we want something more robust?