]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
wrap all_reader_classes[] in #ifndef DBUS_DISABLE_ASSERT (FDO Bug #9030)
authorJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 23:10:50 +0000 (18:10 -0500)
committerJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 23:10:50 +0000 (18:10 -0500)
2008-01-15  John (J5) Palmieri  <johnp@redhat.com>

* patch by Sébastien Couret <10function at gmail dot com>

* dbus/dbus-marshal-recursive.c (all_reader_classes[]): wrap in
#ifndef DBUS_DISABLE_ASSERT since it is only used in asserts which
are noop

ChangeLog
dbus/dbus-marshal-recursive.c

index 528d74b15e7a090405de395fdd702577de76123e..9375a888c5ded8bed555344e0dd275ceece09e70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-01-15  John (J5) Palmieri  <johnp@redhat.com>
+
+       * patch by Sébastien Couret <10function at gmail dot com>
+
+       * dbus/dbus-marshal-recursive.c (all_reader_classes[]): wrap in 
+       #ifndef DBUS_DISABLE_ASSERT since it is only used in asserts which
+       are noop
+
 2008-01-15  John (J5) Palmieri  <johnp@redhat.com>
 
        * patch by Magnus Henoch <henoch plus bfdo at dtek dot chalmers dot se>
index 400eda1a3961ef51d0e1fca84f939cd8496843ec..6c2902e2470c036989c2d840abf7e5fee2e17316 100644 (file)
@@ -690,6 +690,7 @@ static const DBusTypeReaderClass variant_reader_class = {
   base_reader_next
 };
 
+#ifndef DBUS_DISABLE_ASSERT
 static const DBusTypeReaderClass * const
 all_reader_classes[] = {
   &body_reader_class,
@@ -702,6 +703,7 @@ all_reader_classes[] = {
   &array_types_only_reader_class,
   &variant_reader_class
 };
+#endif
 
 /**
  * Initializes a type reader.