fix unused variable warnings
authorRich Felker <dalias@aerifal.cx>
Fri, 2 Nov 2012 02:58:17 +0000 (22:58 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Nov 2012 02:58:17 +0000 (22:58 -0400)
src/env/__init_tls.c
src/env/__stack_chk_fail.c

index c341bfc17d67a9c4f65f9bef0a89a1580125f691..c71f49c1b661aa38c65f6cb3121d41c1e2c2b8cc 100644 (file)
@@ -56,7 +56,7 @@ typedef Elf64_Phdr Phdr;
 void __init_tls(size_t *aux)
 {
        unsigned char *p, *mem;
-       size_t n, d;
+       size_t n;
        Phdr *phdr, *tls_phdr=0;
        size_t base = 0;
 
index 3e2e4b6dfabac5d60194c33eee3c1e4b58371dec..031a1ed7058e4aefd498cc4a379858eacc2ac9c2 100644 (file)
@@ -8,7 +8,6 @@ uintptr_t __stack_chk_guard;
 
 void __init_ssp(void *entropy)
 {
-       size_t i;
        pthread_t self = __pthread_self_init();
        uintptr_t canary;
        if (entropy) memcpy(&canary, entropy, sizeof canary);