diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 22:01:34 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 22:01:34 +0100 |
commit | f817775364018856379b9475efd7b4345db66dc6 (patch) | |
tree | 75d6c66838ae7cf5511d9cc0aefc5a0fe49de33a /sysdeps/mach/hurd/profil.c | |
parent | 06fac9f50335a5669672c4ac9ca93e5f43288822 (diff) | |
download | glibc-f817775364018856379b9475efd7b4345db66dc6.tar.gz glibc-f817775364018856379b9475efd7b4345db66dc6.tar.xz glibc-f817775364018856379b9475efd7b4345db66dc6.zip |
hurd: fix warning
Making `special_profil_failure' both avoids warning "variable 'special_profil_failure' set but not used", and makes it easier to access with gdb. * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable to global scope.
Diffstat (limited to 'sysdeps/mach/hurd/profil.c')
-rw-r--r-- | sysdeps/mach/hurd/profil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c index 2fe8f9de56..b3f201b016 100644 --- a/sysdeps/mach/hurd/profil.c +++ b/sysdeps/mach/hurd/profil.c @@ -138,6 +138,8 @@ __profil (u_short *sample_buffer, size_t size, size_t offset, u_int scale) } weak_alias (__profil, profil) +static volatile error_t special_profil_failure; + /* Fetch PC samples. This function must be very careful not to depend on Hurd threadvar variables. We arrange that by using a special stub arranged for at the end of this file. */ @@ -154,7 +156,6 @@ fetch_samples (void) pc_samples, &nsamples); if (err) { - static volatile error_t special_profil_failure; static volatile int a, b; special_profil_failure = err; |