From: Paul Eggert Date: Mon, 14 Mar 2011 03:23:23 +0000 (-0700) Subject: * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~554^2~124 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78320123c17531bc27b47fb56d170029ca734fec;p=emacs.git * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning if GCC considers string literals to be constants. --- diff --git a/src/ChangeLog b/src/ChangeLog index b062bfdf06d..8a053f05c9d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -7,6 +7,9 @@ (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service): (Fdbus_register_signal): Use SSDATA when the context wants char *. + * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning + if GCC considers string literals to be constants. + 2011-03-13 Chong Yidong * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT) diff --git a/src/dbusbind.c b/src/dbusbind.c index bf19605a346..7bb4e551da5 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c @@ -936,7 +936,7 @@ DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 1, 0, Vdbus_registered_buses = Fcons (bus, Vdbus_registered_buses); /* We do not want to abort. */ - putenv ("DBUS_FATAL_WARNINGS=0"); + putenv ((char *) "DBUS_FATAL_WARNINGS=0"); /* Return. */ return Qnil;