From 1f43bbc798dfb0318bc3bc6e6582583e454a95c0 Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Thu, 23 Mar 2023 09:51:07 +0000 Subject: [PATCH] Remove #pragma ..."-Wstrict-aliasing" G_LOCK was fixed in glib 2.19.8 See https://bugzilla.gnome.org/show_bug.cgi?id=316221 --- gnucash/gnome-utils/print-session.c | 8 -------- libgnucash/backend/xml/io-gncxml-v2.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/gnucash/gnome-utils/print-session.c b/gnucash/gnome-utils/print-session.c index ba06b99678..5932f6af21 100644 --- a/gnucash/gnome-utils/print-session.c +++ b/gnucash/gnome-utils/print-session.c @@ -29,14 +29,6 @@ #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "gnc.printing" -/* Do not treat -Wstrict-aliasing warnings as errors because of problems of the - * G_LOCK* macros as declared by glib. See - * https://bugs.gnucash.org/show_bug.cgi?id=316221 for additional information. - */ -#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2) -# pragma GCC diagnostic warning "-Wstrict-aliasing" -#endif - static GtkPrintSettings *print_settings = NULL; static GtkPageSetup *page_setup = NULL; G_LOCK_DEFINE_STATIC(print_settings); diff --git a/libgnucash/backend/xml/io-gncxml-v2.cpp b/libgnucash/backend/xml/io-gncxml-v2.cpp index 2b37b4b1a4..48e83ec5d0 100644 --- a/libgnucash/backend/xml/io-gncxml-v2.cpp +++ b/libgnucash/backend/xml/io-gncxml-v2.cpp @@ -73,14 +73,6 @@ #include "io-gncxml-v2.h" #include "io-gncxml-gen.h" -/* Do not treat -Wstrict-aliasing warnings as errors because of problems of the - * G_LOCK* macros as declared by glib. See - * https://bugs.gnucash.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; typedef struct