This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] sysconf.cc: Fix compiler warning.
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 29 Aug 2015 07:32:10 -0000
- Subject: [newlib-cygwin] sysconf.cc: Fix compiler warning.
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8fb2a011880256c31b2698450a79ca753674d757
commit 8fb2a011880256c31b2698450a79ca753674d757
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Sat Aug 29 09:32:00 2015 +0200
sysconf.cc: Fix compiler warning.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/sysconf.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc
index b9bcb2b..ae35c6e 100644
--- a/winsup/cygwin/sysconf.cc
+++ b/winsup/cygwin/sysconf.cc
@@ -428,6 +428,8 @@ get_cpu_cache_amd (int in, uint32_t maxe)
else if (in >= _SC_LEVEL2_CACHE_SIZE && in <= _SC_LEVEL3_CACHE_LINESIZE
&& maxe >= 0x80000006)
cpuid (&eax, &ebx, &ecx, &edx, 0x80000006);
+ else
+ return 0;
switch (in)
{