]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix -Wundef warning in SHLIB_COMPAT
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 19 Nov 2014 06:45:01 +0000 (12:15 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 19 Nov 2014 06:45:01 +0000 (12:15 +0530)
Replace the IS_IN_##lib with IS_IN(lib).  Verified that the generated
code remains the same.

* include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.

ChangeLog
include/shlib-compat.h

index 038b134f89b1f47d9c295c9f4addca87d0fa1d7b..d2460f86cf125047c340c56d7e3c4aaa16b58323 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
+
        * Makeconfig (in-module): Get value of libof set for the
        translation unit.
        (CPPFLAGS): Use $(in-module).
index fac0814bc22eb638dbcdfdba3dce2096b4296d1a..30804d369c7f25ba23f7ecbcdcb66127d05c484c 100644 (file)
@@ -41,7 +41,7 @@
 # define SHLIB_COMPAT(lib, introduced, obsoleted)                            \
   _SHLIB_COMPAT (lib, introduced, obsoleted)
 # define _SHLIB_COMPAT(lib, introduced, obsoleted)                           \
-  ((IS_IN_##lib - 0)                                                         \
+  (IS_IN (lib)                                                               \
    && (!(ABI_##lib##_##obsoleted - 0)                                        \
        || ((ABI_##lib##_##introduced - 0) < (ABI_##lib##_##obsoleted - 0))))