r17568 - gnucash/branches/2.2/src/business - [r17565] In some files, do not disable -Waddress completely but keep it as warning instead.

Andreas Köhler andi5 at cvs.gnucash.org
Fri Sep 19 12:31:05 EDT 2008


Author: andi5
Date: 2008-09-19 12:31:05 -0400 (Fri, 19 Sep 2008)
New Revision: 17568
Trac: http://svn.gnucash.org/trac/changeset/17568

Modified:
   gnucash/branches/2.2/src/business/business-core/business-core.i
   gnucash/branches/2.2/src/business/business-gnome/business-urls.c
   gnucash/branches/2.2/src/business/business-gnome/dialog-invoice.c
Log:
[r17565] In some files, do not disable -Waddress completely but keep it as warning instead.

 #if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
 #    pragma GCC diagnostic warning "-Waddress"
 #endif

surely avoids problems with -Werror in those files, but "warning" will
make sure that the warnings are still showed, but not treated as errors.

Modified: gnucash/branches/2.2/src/business/business-core/business-core.i
===================================================================
--- gnucash/branches/2.2/src/business/business-core/business-core.i	2008-09-19 16:25:57 UTC (rev 17567)
+++ gnucash/branches/2.2/src/business/business-core/business-core.i	2008-09-19 16:31:05 UTC (rev 17568)
@@ -23,7 +23,7 @@
  * emits a warning that the guid null pointer test is always true.
  */
 #if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
-#    pragma GCC diagnostic ignored "-Waddress"
+#    pragma GCC diagnostic warning "-Waddress"
 #endif
 
 SCM scm_init_sw_business_core_module (void);

Modified: gnucash/branches/2.2/src/business/business-gnome/business-urls.c
===================================================================
--- gnucash/branches/2.2/src/business/business-gnome/business-urls.c	2008-09-19 16:25:57 UTC (rev 17567)
+++ gnucash/branches/2.2/src/business/business-gnome/business-urls.c	2008-09-19 16:31:05 UTC (rev 17568)
@@ -49,7 +49,7 @@
  * emits a warning that the guid null pointer test is always true.
  */
 #if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
-#    pragma GCC diagnostic ignored "-Waddress"
+#    pragma GCC diagnostic warning "-Waddress"
 #endif
 
 #define HANDLE_TYPE(URL_TYPE_STR,OBJ_TYPE) {                                 \

Modified: gnucash/branches/2.2/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/branches/2.2/src/business/business-gnome/dialog-invoice.c	2008-09-19 16:25:57 UTC (rev 17567)
+++ gnucash/branches/2.2/src/business/business-gnome/dialog-invoice.c	2008-09-19 16:31:05 UTC (rev 17568)
@@ -77,7 +77,7 @@
  * emits a warning that the guid null pointer test is always true.
  */
 #if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
-#    pragma GCC diagnostic ignored "-Waddress"
+#    pragma GCC diagnostic warning "-Waddress"
 #endif
 
 #define DIALOG_NEW_INVOICE_CM_CLASS "dialog-new-invoice"



More information about the gnucash-changes mailing list