mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
hurd: fix warning
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing a `c' variable.
This commit is contained in:
parent
85285a0ce7
commit
da8168df01
@ -1,6 +1,8 @@
|
||||
2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
* sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
|
||||
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
|
||||
a `c' variable.
|
||||
|
||||
2018-01-27 James Clarke <jrtc27@jrtc27.com>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user