diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2013-05-01 01:20:37 +0000 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2013-05-01 01:20:37 +0000 |
commit | 1f36328e7f31694b422c29881c17e957265d8344 (patch) | |
tree | 5fc3907f62575f45e7f49386359d9c17909a6f6a /winsup/cygwin/smallprint.cc | |
parent | 92f63de3676413f9396fb17c55ca8f44f31f506b (diff) | |
download | newlib-1f36328e7f31694b422c29881c17e957265d8344.zip newlib-1f36328e7f31694b422c29881c17e957265d8344.tar.gz newlib-1f36328e7f31694b422c29881c17e957265d8344.tar.bz2 |
Throughout, (mainly in fhandler*) fix remaining gcc 4.7 mismatch
warnings between regparm definitions and declarations.
* smallprint.cc (__small_vswprintf): Conditionalize declaration and
setting of l_opt for only x86_64.
* spawn.cc (child_info_spawn::worker): Remove unused 'pid' variable.
* thread.cc (verifyable_object_isvalid): Temporarily define as
non-inline with gcc 4.7+, regardless of target.
Diffstat (limited to 'winsup/cygwin/smallprint.cc')
-rw-r--r-- | winsup/cygwin/smallprint.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/smallprint.cc b/winsup/cygwin/smallprint.cc index 75291e7..e3e238f 100644 --- a/winsup/cygwin/smallprint.cc +++ b/winsup/cygwin/smallprint.cc @@ -484,7 +484,9 @@ __small_vswprintf (PWCHAR dst, const WCHAR *fmt, va_list ap) while (*fmt) { unsigned int n = 0x7fff; +#ifdef __x86_64__ bool l_opt = false; +#endif if (*fmt != L'%') *dst++ = *fmt++; else @@ -519,7 +521,9 @@ __small_vswprintf (PWCHAR dst, const WCHAR *fmt, va_list ap) len = len * 10 + (c - L'0'); continue; case L'l': +#ifdef __x86_64__ l_opt = true; +#endif continue; case L'c': case L'C': |