wrap all_reader_classes[] in #ifndef DBUS_DISABLE_ASSERT (FDO Bug #9030)

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
This commit is contained in:
John (J5) Palmieri 2008-01-15 18:10:50 -05:00
parent 7ef60319c7
commit e113a70b56
2 changed files with 10 additions and 0 deletions

View file

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

View 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.