compiler warning with 'elf: rewrite version support'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compiler warning with 'elf: rewrite version support'

tinycc-devel mailing list
I get a compiler warning with the recent change to tccelf.c:

tccelf.c: In function 'tcc_output_file':
tccelf.c:615:23: warning: 'vna' may be used uninitialized in this
function [-Wmaybe-uninitialized]
   615 |         vna->vna_next = 0;
       |         ~~~~~~~~~~~~~~^~~
tccelf.c:593:24: note: 'vna' was declared here
   593 |         ElfW(Vernaux) *vna;
       |                        ^~~


The probably should be fixed.

Regards,

     Herman

_______________________________________________
Tinycc-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Reply | Threaded
Open this post in threaded view
|

Re: compiler warning with 'elf: rewrite version support'

Michael Matz-4
Hi,

On Tue, 26 Nov 2019, Herman ten Brugge via Tinycc-devel wrote:

> tccelf.c: In function 'tcc_output_file':
> tccelf.c:615:23: warning: 'vna' may be used uninitialized in this function
> [-Wmaybe-uninitialized]
>   615 |         vna->vna_next = 0;
>       |         ~~~~~~~~~~~~~~^~~
> tccelf.c:593:24: note: 'vna' was declared here
>   593 |         ElfW(Vernaux) *vna;

Blaeh, false positive.

> The probably should be fixed.

Worked around in mob.


Ciao,
Michael.
_______________________________________________
Tinycc-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel