Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-02-21 02:31:47 +0300
committerCorinna Vinschen <corinna@vinschen.de>2004-02-21 02:31:47 +0300
commit12afe4452794da198bfb969a558fd52ff10649eb (patch)
tree640dfe3710251335566ee2b8ba11e77d2033d5e5 /winsup/cygwin/libc
parent1a57b229147012ec9df012594a6e78c62ecb9eae (diff)
* getopt.c: Avoid useless compiler warnings.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/getopt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/getopt.c b/winsup/cygwin/libc/getopt.c
index 6079ce350..0ed46310e 100644
--- a/winsup/cygwin/libc/getopt.c
+++ b/winsup/cygwin/libc/getopt.c
@@ -87,7 +87,11 @@ char *optarg; /* argument associated with option */
#define BADARG ((*options == ':') ? (int)':' : (int)'?')
#define INORDER (int)1
+#ifdef __CYGWIN__
+static char EMSG[] = "";
+#else
#define EMSG ""
+#endif
static int getopt_internal(int, char * const *, const char *,
const struct option *, int *, int);
@@ -421,7 +425,7 @@ start:
}
if ((optchar = (int)*place++) == (int)':' ||
- optchar == (int)'-' && *place != '\0' ||
+ (optchar == (int)'-' && *place != '\0') ||
(oli = strchr(options, optchar)) == NULL) {
/*
* If the user specified "-" and '-' isn't listed in