Browse Source

fix unused variable warnings

Rich Felker 12 years ago
parent
commit
3a5aa8e49c
2 changed files with 1 additions and 2 deletions
  1. 1 1
      src/env/__init_tls.c
  2. 0 1
      src/env/__stack_chk_fail.c

+ 1 - 1
src/env/__init_tls.c

@@ -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;
 

+ 0 - 1
src/env/__stack_chk_fail.c

@@ -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);