summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Sionneau <ysionneau@kalray.eu>2021-11-29 16:33:34 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2021-12-24 00:29:55 +0100
commit062fac27c581ee207defcca238df691f896859f2 (patch)
treea9dc483920f90403d5f11fa13597370f0b6cf6ff
parent48a333b652e4874f9fccccbc608fcedbe25909ea (diff)
Fix -Wundef related warnings
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
-rw-r--r--ldso/include/dl-string.h2
-rw-r--r--libc/misc/fnmatch/fnmatch_loop.c2
-rw-r--r--libc/misc/regex/regex_internal.h2
-rw-r--r--libpthread/nptl/pthread_create.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h
index bf6997188..6cc76dbf9 100644
--- a/ldso/include/dl-string.h
+++ b/ldso/include/dl-string.h
@@ -257,7 +257,7 @@ static __always_inline char * _dl_simple_ltoahex(char *local, unsigned long i)
/* On some (wierd) arches, none of this stuff works at all, so
* disable the whole lot... */
/* The same applies for ARM FDPIC at least for the moment. */
-#if defined(__mips__) || (__FDPIC__)
+#if defined(__mips__) || defined(__FDPIC__)
# define SEND_STDERR(X)
# define SEND_ADDRESS_STDERR(X, add_a_newline)
diff --git a/libc/misc/fnmatch/fnmatch_loop.c b/libc/misc/fnmatch/fnmatch_loop.c
index fdd451d43..32ee079a3 100644
--- a/libc/misc/fnmatch/fnmatch_loop.c
+++ b/libc/misc/fnmatch/fnmatch_loop.c
@@ -620,7 +620,7 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end,
if (c == L('-') && *p != L(']'))
{
-#if _LIBC
+#ifdef _LIBC
/* We have to find the collation sequence
value for C. Collation sequence is nothing
we can regularly access. The sequence
diff --git a/libc/misc/regex/regex_internal.h b/libc/misc/regex/regex_internal.h
index 5d9154fa0..c0f61d4ce 100644
--- a/libc/misc/regex/regex_internal.h
+++ b/libc/misc/regex/regex_internal.h
@@ -58,7 +58,7 @@
#define gettext(msgid) (msgid)
#define gettext_noop(String) String
-#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL)
+#if (defined MB_CUR_MAX && defined HAVE_LOCALE_H && defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_WCRTOMB && defined HAVE_MBRTOWC && defined HAVE_WCSCOLL)
# define RE_ENABLE_I18N
#endif
diff --git a/libpthread/nptl/pthread_create.c b/libpthread/nptl/pthread_create.c
index 5a7957d6a..697af20e0 100644
--- a/libpthread/nptl/pthread_create.c
+++ b/libpthread/nptl/pthread_create.c
@@ -447,7 +447,7 @@ pthread_create (
performed in 'get_cached_stack'. This way we avoid doing this if
the stack freshly allocated with 'mmap'. */
-#if TLS_TCB_AT_TP
+#ifdef TLS_TCB_AT_TP
/* Reference to the TCB itself. */
pd->header.self = pd;