]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
fd.o bug #11678 Don't error out if compiler does not support vararg macros
authorJohn (J5) Palmieri <johnp@redhat.com>
Wed, 3 Oct 2007 21:54:09 +0000 (17:54 -0400)
committerJohn (J5) Palmieri <johnp@redhat.com>
Wed, 3 Oct 2007 21:54:09 +0000 (17:54 -0400)
* _dbus_verbose is the only function that does this so make it a noop if
  vararg macros are not supported
* https://bugs.freedesktop.org/show_bug.cgi?id=11678

dbus/dbus-internals.h

index 43a46b8398c86ad4cba4f935f2e1bcb5094a4265..3e5f989dc930be393846beb89b518a0500f8e7b8 100644 (file)
@@ -97,7 +97,7 @@ dbus_bool_t _dbus_is_verbose_real (void);
 #  elif defined (HAVE_GNUC_VARARGS)
 #    define _dbus_verbose(format...)
 #  else
-#    error "This compiler does not support varargs macros and thus verbose mode can't be disabled meaningfully"
+static void _dbus_verbose(const char * x,...) {;}
 #  endif
 #  define _dbus_verbose_reset()
 #  define _dbus_is_verbose() FALSE