GSoC Project | Basic Support for Trace Compass

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 8 06:37:48 UTC 2019


On 08/07/2019 08:22, Ravindra Kumar Meena wrote:
> I have upgraded my machine from Ubuntu 16.04 to Ubuntu 19. Still, I 
> can't see that warning.
> 
> I used GCC 8.3.0.

I see this error also with GCC 8:

/usr/bin/gcc-8 -O2 misc/record/record-main.c -I misc/record -Wall
misc/record/record-main.c: In function ‘main’:
misc/record/record-main.c:135:30: warning: ‘input_file’ may be used 
uninitialized in this function [-Wmaybe-uninitialized]
    fd = ( input_file_flag ) ? open( input_file, O_RDONLY ) :
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
misc/record/record-main.c:278:15: note: ‘input_file’ was declared here
    const char *input_file;
                ^~~~~~~~~~

Anyway, could you please fix this warning. The input_file may be in fact 
uninitialized.
> 
> I have attached the configure and build process in txt file. Please find 
> them both below.

What is the output for the record-main.c if you use "./waf -v".

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list