[MDEV-21939] 10.1 Build warning, error: 'subkeys.f' may be used uninitialized in this function Created: 2020-03-14  Updated: 2020-03-15

Status: Open
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.1
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: Roel Van de Paar Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Build 10.1 in debug or optimized, and compilation will fail with:

/data/git/10.1_dbg/storage/myisam/ft_nlq_search.c: In function 'walk_and_match':
/data/git/10.1_dbg/storage/myisam/ft_nlq_search.c:120:16: error: 'subkeys.f' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if (subkeys.i < 0)
         ~~~~~~~^~

Workaround, w/ thanks to Sergei:
-DMYSQL_MAINTAINER_MODE=0



 Comments   
Comment by Roel Van de Paar [ 2020-03-14 ]

Adding -DMYSQL_MAINTAINER_MODE=0 to QA build scripts creates a risk that future (other) warnings may be unseen.

Generated at Thu Feb 08 09:10:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.