summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/strcpy.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2007-05-29 21:26:59 +0000
committerEric Blake <eblake@redhat.com>2007-05-29 21:26:59 +0000
commitb206478328eb2cf2e8807b514dabb3069299a1e6 (patch)
treeb4b83ac0428f372f64645848f9db517df35b7dc1 /newlib/libc/string/strcpy.c
parentad4e943fca1d5f03a1d23c742365d39d374ff942 (diff)
downloadcygnal-b206478328eb2cf2e8807b514dabb3069299a1e6.tar.gz
cygnal-b206478328eb2cf2e8807b514dabb3069299a1e6.tar.bz2
cygnal-b206478328eb2cf2e8807b514dabb3069299a1e6.zip
Avoid more compiler warnings.
* libc/stdlib/btowc.c: Add missing header. * libc/stdlib/getopt.c (getopt_internal): Initialize variable. * libc/stdlib/system.c (do_system) [__CYGWIN__]: Add declaration. * libc/stdlib/wctob.c: Add missing header. * libc/string/strcpy.c (strcpy): Avoid warnings. * libc/string/strrchr.c (strrchr): Likewise.
Diffstat (limited to 'newlib/libc/string/strcpy.c')
-rw-r--r--newlib/libc/string/strcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/strcpy.c b/newlib/libc/string/strcpy.c
index 905b2541c..3dc3c33f6 100644
--- a/newlib/libc/string/strcpy.c
+++ b/newlib/libc/string/strcpy.c
@@ -92,7 +92,7 @@ _DEFUN (strcpy, (dst0, src0),
src = (char*)aligned_src;
}
- while (*dst++ = *src++)
+ while ((*dst++ = *src++))
;
return dst0;
#endif /* not PREFER_SIZE_OVER_SPEED */