]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* configure.in: make sure the compiler supports -Wfloat-equal
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 21:00:30 +0000 (21:00 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 10 Aug 2006 21:00:30 +0000 (21:00 +0000)
* bus/dir-watch-dnotify.c: move functional code after
  variable declerations (C99 fix)  (patches from Jens Granseuer
  <jensgr at gmx dot net>

ChangeLog
bus/dir-watch-dnotify.c
configure.in

index c6d5b3d9f51ed0967fda835a362553e36b6dd120..f33eb93dff244ee0019773540c028b159d18918d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
+
+       * 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
+       <jensgr at gmx dot net>
+
 2006-08-10  John (J5) Palmieri  <johnp@redhat.com>
 
        * dbus/dbus-macros.h:
index 64cfc74df1dfc69bc22bdf8e36c90ecbe21de210..87e3276176c758e5c21bb1c543cb075811fa183d 100644 (file)
@@ -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)
index a411262ecdaa4b0aabfefa3e96b3aaafe6e1b731..48382b569006f552d167daa6b0c2981f96b4058b 100644 (file)
@@ -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