Remove #pragma ..."-Wstrict-aliasing"

G_LOCK was fixed in glib 2.19.8

See https://bugzilla.gnome.org/show_bug.cgi?id=316221
This commit is contained in:
Richard Cohen 2023-03-23 09:51:07 +00:00
parent 80e9d9c35d
commit 1f43bbc798
2 changed files with 0 additions and 16 deletions

View File

@ -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);

View File

@ -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