diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-11-19 12:15:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-11-19 12:15:01 +0530 |
commit | 286663c34b006c1409df4a71f89d6d4d5d01df09 (patch) | |
tree | d40026afd76921a68d01cbaf44e7ac9809c3b0a1 | |
parent | 9cd4747089e6b0d6ed6b2b6c75798912489c7bab (diff) | |
download | glibc-286663c34b006c1409df4a71f89d6d4d5d01df09.tar glibc-286663c34b006c1409df4a71f89d6d4d5d01df09.tar.gz glibc-286663c34b006c1409df4a71f89d6d4d5d01df09.tar.bz2 glibc-286663c34b006c1409df4a71f89d6d4d5d01df09.zip |
Fix -Wundef warning in SHLIB_COMPAT
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.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | include/shlib-compat.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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). diff --git a/include/shlib-compat.h b/include/shlib-compat.h index fac0814bc2..30804d369c 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -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)))) |