diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-06-28 12:12:57 +0200 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-07-14 22:57:49 +0200 |
commit | d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce (patch) | |
tree | a80bd2acee5e59c7d97d14c1dae9c757898888b1 /win32/regex.c | |
parent | dacee10ce244e3da9f2d1f0f43a3224ab9e5d26b (diff) | |
download | busybox-w32-d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce.tar.gz busybox-w32-d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce.tar.bz2 busybox-w32-d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce.zip |
win32/regex: fix compile warnings
There are plenty of warnings that were not detected in Git's source
code, due to some warnings being turned off in Git's build by default
(even with DEVELOPER=1).
The warnings fall into three categories:
- constants being tested via `#if <name>` instead of `#ifdef <name>`
- unused function parameters
- one instance of an unnecessarily-shadowing variable
This patch fixes all of them.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'win32/regex.c')
-rw-r--r-- | win32/regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/regex.c b/win32/regex.c index 95e5d757a..e40a2ea01 100644 --- a/win32/regex.c +++ b/win32/regex.c | |||
@@ -81,7 +81,7 @@ | |||
81 | #include "regexec.c" | 81 | #include "regexec.c" |
82 | 82 | ||
83 | /* Binary backward compatibility. */ | 83 | /* Binary backward compatibility. */ |
84 | #if _LIBC | 84 | #ifdef _LIBC |
85 | # include <shlib-compat.h> | 85 | # include <shlib-compat.h> |
86 | # if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3) | 86 | # if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3) |
87 | link_warning (re_max_failures, "the 're_max_failures' variable is obsolete and will go away.") | 87 | link_warning (re_max_failures, "the 're_max_failures' variable is obsolete and will go away.") |