about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 16:33:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 16:33:29 +0100
commitda8168df01e0b47eb369e5871be8c224690d1cfe (patch)
treed73495d0408ba118bd63e940c0e39a0db3736c96 /sysdeps/mach
parent85285a0ce77de8c3f87a9aefe5263b7067caa9d1 (diff)
downloadglibc-da8168df01e0b47eb369e5871be8c224690d1cfe.tar.gz
glibc-da8168df01e0b47eb369e5871be8c224690d1cfe.tar.xz
glibc-da8168df01e0b47eb369e5871be8c224690d1cfe.zip
hurd: fix warning
	* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
	a `c' variable.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/profil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c
index 1323457acb..2fe8f9de56 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)