[oe] [PATCH] rocksdb: Fix compile error for DEBUG_BUILD

Robert Yang liezhi.yang at windriver.com
Thu Jan 9 07:13:57 UTC 2020



On 1/8/20 5:27 PM, Adrian Bunk wrote:
> On Wed, Jan 08, 2020 at 02:09:03PM +0800, Robert Yang wrote:
>> Fixed do_compile error when DEBUG_BUILD = "1":
>> db/write_thread.cc:183:14: error: 'state' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>> ...
> 
> -Og warnings are not 100% reliable, and in general -Werror is
> problematic for distributions.
> 
> Does building with -DFAIL_ON_WARNINGS=OFF fix this problem?

Yes, it works.

I think that the correct way to fix it is initialize it rather than ignore the 
error.

// Robert

> 
> cu
> Adrian
> 


More information about the Openembedded-devel mailing list