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.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to