Skip to content

Fix VLA warning in linenoise and enable -Werror#3439

Merged
hpatro merged 1 commit into
valkey-io:unstablefrom
madolson:fix-vla-warning-linenoise
Apr 3, 2026
Merged

Fix VLA warning in linenoise and enable -Werror#3439
hpatro merged 1 commit into
valkey-io:unstablefrom
madolson:fix-vla-warning-linenoise

Conversation

@madolson

@madolson madolson commented Apr 2, 2026

Copy link
Copy Markdown
Member

Replace 'const int seqBufferMaxLength' with a #define to avoid a variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings are caught at build time.

Replace 'const int seqBufferMaxLength' with a #define to avoid
a variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings
are caught at build time.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson force-pushed the fix-vla-warning-linenoise branch from cf75d6d to 53c8a45 Compare April 2, 2026 22:52
@codecov

codecov Bot commented Apr 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.47%. Comparing base (2cde059) to head (53c8a45).
⚠️ Report is 8 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #3439      +/-   ##
============================================
- Coverage     76.59%   76.47%   -0.12%     
============================================
  Files           159      157       -2     
  Lines         79682    79025     -657     
============================================
- Hits          61031    60433     -598     
+ Misses        18651    18592      -59     

see 38 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hpatro hpatro merged commit e8ca6c0 into valkey-io:unstable Apr 3, 2026
58 checks passed
Nikhil-Manglore pushed a commit to Nikhil-Manglore/valkey that referenced this pull request Apr 7, 2026
Replace 'const int seqBufferMaxLength' with a #define to avoid a
variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings are caught
at build time.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
sarthakaggarwal97 pushed a commit to sarthakaggarwal97/valkey that referenced this pull request Apr 16, 2026
Replace 'const int seqBufferMaxLength' with a #define to avoid a
variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings are caught
at build time.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson added a commit that referenced this pull request Apr 27, 2026
Replace 'const int seqBufferMaxLength' with a #define to avoid a
variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings are caught
at build time.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
roshkhatri pushed a commit to roshkhatri/valkey that referenced this pull request May 26, 2026
Replace 'const int seqBufferMaxLength' with a #define to avoid a
variable-length array warning (-Wgnu-folding-constant) in C.

Also add -Werror to the linenoise Makefile so future warnings are caught
at build time.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants