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_internal.h | |
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_internal.h')
-rw-r--r-- | win32/regex_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/regex_internal.h b/win32/regex_internal.h index 4184d7f5a..1495059ab 100644 --- a/win32/regex_internal.h +++ b/win32/regex_internal.h | |||
@@ -115,7 +115,7 @@ is_blank (int c) | |||
115 | #define MB_CUR_MAX 1 | 115 | #define MB_CUR_MAX 1 |
116 | #endif | 116 | #endif |
117 | 117 | ||
118 | #if (defined MBS_SUPPORT) || _LIBC | 118 | #if (defined MBS_SUPPORT) || defined _LIBC |
119 | # define RE_ENABLE_I18N | 119 | # define RE_ENABLE_I18N |
120 | #endif | 120 | #endif |
121 | 121 | ||
@@ -454,7 +454,7 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx, | |||
454 | 454 | ||
455 | #ifndef _LIBC | 455 | #ifndef _LIBC |
456 | # if HAVE_ALLOCA | 456 | # if HAVE_ALLOCA |
457 | # if (_MSC_VER) | 457 | # ifdef (_MSC_VER) |
458 | # include <malloc.h> | 458 | # include <malloc.h> |
459 | # define __libc_use_alloca(n) 0 | 459 | # define __libc_use_alloca(n) 0 |
460 | # else | 460 | # else |