[PATCH] dbus-arch-deps.h is not ISO C compliant
Trent Lloyd
lathiat at bur.st
Thu Sep 8 05:56:19 PDT 2005
Heres a unified diff
Trent
On Thu, Sep 08, 2005 at 08:41:49PM +0800, Trent Lloyd wrote:
> Hi guys,
>
> ATM dbus-arch-deps.h isn't ISO C compliant, its only a warning really,
> just that theres a superflous ; where it shouldn't be.
>
> example warning:
> In file included from /usr/include/dbus-1.0/dbus/dbus.h:33,
> from dbus-watch-glue.h:25,
> from dbus-watch-glue.c:27:
> /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h:32: warning: ISO C does not allow extra ';' outside of a function
> /usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h:54: warning: ISO C does not allow extra ';' outside of a function
>
> Patch attached.
>
> Cheers,
> Trent
>
> --
> Trent Lloyd <lathiat at bur.st>
> Bur.st Networking Inc.
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
--
Trent Lloyd <lathiat at bur.st>
Bur.st Networking Inc.
-------------- next part --------------
? dbus_sharp_16bit_v1.diff
? iso-c.diff
? iso-c.patch
Index: dbus/dbus-arch-deps.h.in
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-arch-deps.h.in,v
retrieving revision 1.3
diff -u -r1.3 dbus-arch-deps.h.in
--- dbus/dbus-arch-deps.h.in 28 Jan 2005 03:06:55 -0000 1.3
+++ dbus/dbus-arch-deps.h.in 8 Sep 2005 12:55:15 -0000
@@ -29,7 +29,7 @@
#include <dbus/dbus-macros.h>
-DBUS_BEGIN_DECLS;
+DBUS_BEGIN_DECLS
#if @DBUS_HAVE_INT64@
#define DBUS_HAVE_INT64 1
@@ -51,6 +51,6 @@
typedef @DBUS_INT16_TYPE@ dbus_int16_t;
typedef unsigned @DBUS_INT16_TYPE@ dbus_uint16_t;
-DBUS_END_DECLS;
+DBUS_END_DECLS
#endif /* DBUS_ARCH_DEPS_H */
More information about the dbus
mailing list