diff --git a/src/backend/file/io-gncxml-v2.c b/src/backend/file/io-gncxml-v2.c index 426f923777..a7a2b3e070 100644 --- a/src/backend/file/io-gncxml-v2.c +++ b/src/backend/file/io-gncxml-v2.c @@ -47,6 +47,14 @@ #include "gnc-xml.h" #include "io-utils.h" +/* Do not treat -Wstrict-aliasing warnings as errors because of problems of the + * G_LOCK* macros as declared by glib. See + * http://bugzilla.gnome.org/show_bug.cgi?id=316221 for additional information. + */ +#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2) +# pragma GCC diagnostic warning "-Wstrict-aliasing" +#endif + static QofLogModule log_module = GNC_MOD_IO; /* map pointers, e.g. of type FILE*, to GThreads */ diff --git a/src/gnome-utils/gnc-html.c b/src/gnome-utils/gnc-html.c index c5cf537641..3dc2e95825 100644 --- a/src/gnome-utils/gnc-html.c +++ b/src/gnome-utils/gnc-html.c @@ -53,6 +53,14 @@ #include "gnc-ui.h" #include "gnc-ui-util.h" +/* Do not treat -Wstrict-aliasing warnings as errors because of problems of the + * G_LOCK* macros as declared by glib. See + * http://bugzilla.gnome.org/show_bug.cgi?id=316221 for additional information. + */ +#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2) +# pragma GCC diagnostic warning "-Wstrict-aliasing" +#endif + struct gnc_html_struct { GtkWidget * window; /* window this html goes into */ diff --git a/src/gnome/dialog-print-check.c b/src/gnome/dialog-print-check.c index 6e5388e0c1..7f6c46b17e 100644 --- a/src/gnome/dialog-print-check.c +++ b/src/gnome/dialog-print-check.c @@ -95,6 +95,14 @@ #define KF_KEY_TEXT "Text" #define KF_KEY_FILENAME "Filename" +/* Do not treat -Wstrict-aliasing warnings as errors because of problems of the + * G_LOCK* macros as declared by glib. See + * http://bugzilla.gnome.org/show_bug.cgi?id=316221 for additional information. + */ +#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2) +# pragma GCC diagnostic warning "-Wstrict-aliasing" +#endif + /**< This enum specifies the columns used in the check format combobox. */ typedef enum format_combo_col_t { COL_NAME = 0, /**< This column holds a copy of the check