Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macro redefinition problem in fmacros.h #1704

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

rjd15372
Copy link
Member

The _DEFAULT_SOURCE macro is defined in our code base in "fmacros.h", but it might also be defined by including <features.h>, which is transitively included by <sys/types.h>.

Therefore, to avoid redefinition build warnings, we check if the macro is already defined.

The `_DEFAULT_SOURCE` macro is defined in our code base in `"fmacros.h"`,
but it might also be defined by including `<features.h>`, which is
transitively included by `<sys/types.h>`.

Therefore, to avoid redefinition build warnings, we check if the macro is
already defined.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
@rjd15372 rjd15372 requested review from PingXie and madolson February 10, 2025 15:01
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.14%. Comparing base (3828936) to head (d8e3db0).
Report is 6 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1704      +/-   ##
============================================
+ Coverage     71.10%   71.14%   +0.03%     
============================================
  Files           123      123              
  Lines         65523    65523              
============================================
+ Hits          46590    46614      +24     
+ Misses        18933    18909      -24     

see 13 files with indirect coverage changes

@zuiderkwast zuiderkwast merged commit 1470ee8 into valkey-io:unstable Feb 10, 2025
50 checks passed
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.

4 participants