From: Samuel Thibault Date: Sat, 27 Jan 2018 15:33:13 +0000 (+0100) Subject: hurd: fix warning X-Git-Tag: glibc-2.27~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8168df01e0b47eb369e5871be8c224690d1cfe;p=thirdparty%2Fglibc.git hurd: fix warning * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing a `c' variable. --- diff --git a/ChangeLog b/ChangeLog index e6392de4e8b..d923c6444f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2018-01-27 Samuel Thibault * sysdeps/mach/hurd/xmknodat.c: Include . + * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing + a `c' variable. 2018-01-27 James Clarke diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c index 1323457acbf..2fe8f9de56d 100644 --- a/sysdeps/mach/hurd/profil.c +++ b/sysdeps/mach/hurd/profil.c @@ -154,14 +154,14 @@ fetch_samples (void) pc_samples, &nsamples); if (err) { - static error_t special_profil_failure; - static volatile int a, b, c; + static volatile error_t special_profil_failure; + static volatile int a, b; special_profil_failure = err; a = 1; b = 0; while (1) - c = a / b; + a = a / b; } for (i = 0; i < nsamples; ++i)