Skip to content

fix compile warning in util.c#3585

Merged
madolson merged 3 commits into
valkey-io:unstablefrom
JimB123:unstable-util-attr-fix
Apr 29, 2026
Merged

fix compile warning in util.c#3585
madolson merged 3 commits into
valkey-io:unstablefrom
JimB123:unstable-util-attr-fix

Conversation

@JimB123

@JimB123 JimB123 commented Apr 28, 2026

Copy link
Copy Markdown
Member

Address this compile warning:

    CC util.o
util.c:638:1: warning: ‘no_sanitizeattribute directive ignored [-Wattributes]
 __attribute__((no_sanitize_address, no_sanitize("thread"), used)) static int (*string2ll_resolver(void))(const char *, size_t, long long *) {
 ^~~~~~~~~~~~~

Addresses portability concerns around these attributes.

@JimB123 JimB123 force-pushed the unstable-util-attr-fix branch 3 times, most recently from 6c7cef4 to b7f2a16 Compare April 28, 2026 22:34
@codecov

codecov Bot commented Apr 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.61%. Comparing base (8091c6c) to head (a7020ed).
⚠️ Report is 4 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #3585      +/-   ##
============================================
+ Coverage     76.42%   76.61%   +0.18%     
============================================
  Files           159      159              
  Lines         80113    80115       +2     
============================================
+ Hits          61225    61377     +152     
+ Misses        18888    18738     -150     
Files with missing lines Coverage Δ
src/util.c 69.68% <100.00%> (ø)

... and 23 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.

@JimB123 JimB123 requested a review from madolson April 28, 2026 23:46

@madolson madolson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning fix is valid, but this can be much simpler by reusing the existing VALKEY_NO_SANITIZE macro from config.h.

Comment thread src/util.c
@JimB123 JimB123 force-pushed the unstable-util-attr-fix branch from 7049e0e to 1f22572 Compare April 29, 2026 14:23
@JimB123

JimB123 commented Apr 29, 2026

Copy link
Copy Markdown
Member Author

the existing VALKEY_NO_SANITIZE macro from config.h
Nice. Didn't know about that one.

Signed-off-by: Jim Brunner <brunnerj@amazon.com>
@JimB123 JimB123 force-pushed the unstable-util-attr-fix branch from 1f22572 to a3dcb94 Compare April 29, 2026 14:40
Comment thread src/util.c Outdated
Signed-off-by: Jim Brunner <brunnerj@amazon.com>
Comment thread src/util.c Outdated
Signed-off-by: Jim Brunner <brunnerj@amazon.com>
@JimB123 JimB123 requested a review from madolson April 29, 2026 15:32
@madolson madolson merged commit ad404cd into valkey-io:unstable Apr 29, 2026
59 checks passed
lucasyonge pushed a commit that referenced this pull request May 11, 2026
Address this compile warning:
```c
    CC util.o
util.c:638:1: warning: ‘no_sanitize’ attribute directive ignored [-Wattributes]
 __attribute__((no_sanitize_address, no_sanitize("thread"), used)) static int (*string2ll_resolver(void))(const char *, size_t, long long *) {
 ^~~~~~~~~~~~~
```
Addresses portability concerns around these attributes.

---------

Signed-off-by: Jim Brunner <brunnerj@amazon.com>
lucasyonge pushed a commit that referenced this pull request May 12, 2026
Address this compile warning:
```c
    CC util.o
util.c:638:1: warning: ‘no_sanitize’ attribute directive ignored [-Wattributes]
 __attribute__((no_sanitize_address, no_sanitize("thread"), used)) static int (*string2ll_resolver(void))(const char *, size_t, long long *) {
 ^~~~~~~~~~~~~
```
Addresses portability concerns around these attributes.

---------

Signed-off-by: Jim Brunner <brunnerj@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.

2 participants