From: John (J5) Palmieri Date: Thu, 10 Aug 2006 21:00:30 +0000 (+0000) Subject: * configure.in: make sure the compiler supports -Wfloat-equal X-Git-Tag: dbus-0.92~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eba6a2bf0715455512ab2d41051a9b7a5e0d8d8;p=thirdparty%2Fdbus.git * configure.in: make sure the compiler supports -Wfloat-equal * bus/dir-watch-dnotify.c: move functional code after variable declerations (C99 fix) (patches from Jens Granseuer --- diff --git a/ChangeLog b/ChangeLog index c6d5b3d9f..f33eb93df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-08-10 John (J5) Palmieri + + * configure.in: make sure the compiler supports -Wfloat-equal + + * bus/dir-watch-dnotify.c: move functional code after + variable declerations (C99 fix) (patches from Jens Granseuer + + 2006-08-10 John (J5) Palmieri * dbus/dbus-macros.h: diff --git a/bus/dir-watch-dnotify.c b/bus/dir-watch-dnotify.c index 64cfc74df..87e327617 100644 --- a/bus/dir-watch-dnotify.c +++ b/bus/dir-watch-dnotify.c @@ -74,10 +74,10 @@ bus_watch_directory (const char *dir, void *userdata) void bus_drop_all_directory_watches (void) { - _dbus_verbose ("Dropping all watches on config directories\n"); - int i; - + + _dbus_verbose ("Dropping all watches on config directories\n"); + for (i = 0; i < num_fds; i++) { if (close (fds[i]) != 0) diff --git a/configure.in b/configure.in index a411262ec..48382b569 100644 --- a/configure.in +++ b/configure.in @@ -146,7 +146,10 @@ if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wfloat-equal[\ \ ]*) ;; - *) CFLAGS="$CFLAGS -Wfloat-equal" ;; + *) if cc_supports_flag -Wfloat-equals; then + CFLAGS="$CFLAGS -Wfloat-equal" + fi + ;; esac case " $CFLAGS " in