On 4/1/19 12:03 AM, Yu, Mingli wrote:
> Ping.
> 
> Thanks,
> 
> On 2019年03月19日 16:37, mingli...@windriver.com wrote:
>> From: Mingli Yu <mingli...@windriver.com>
>>
>> Initialize st_mode member to fix the below
>> build failure when -Og included in compiler flag.
>> |
>> ./../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:
>> In function 'elf_is_symlink':
>> |
>> ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21:
>> error: 'st.st_mode' may be used uninitialized in this function
>> [-Werror=maybe-uninitialized]
>>     return S_ISLNK (st.st_mode);
We already wet through this with someone else.  Use -O2 rather than -Og
or -O1 when compiling that file.  THe warning is a false positive and
the higher optimization levels

jeff

Reply via email to