[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] New ARM warning. Does it reveal an issue?

From: Christian Jullien
Subject: [Tinycc-devel] New ARM warning. Does it reveal an issue?
Date: Mon, 30 Apr 2018 07:28:17 +0200

Hi all,


Recompiling mod on ARM gives me this new Warning :

tccelf.c:869:9: warning: variable ‘sym_index’ set but not used [-Wunused-but-set-variable]

     int sym_index, type, count;





/* count the number of dynamic relocations so that we can reserve

   their space */

static int prepare_dynamic_rel(TCCState *s1, Section *sr)


    ElfW_Rel *rel;

    int sym_index, type, count;


    count = 0;

    for_each_elem(sr, 0, rel, ElfW_Rel) {

        sym_index = ELFW(R_SYM)(rel->r_info);


Indeed, code that follows is  for TCC_TARGET_I386 or TCC_TARGET_X86_64


Nothing related to ARM or ARM64.


Is it annoying, can you please at least fix this warning?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]