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

Removing a static qualifier #496

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Removing a static qualifier #496

merged 1 commit into from
Jul 4, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Jul 3, 2023

Fixes #495

@lemire lemire merged commit cc34c6d into master Jul 4, 2023
@@ -180,7 +180,7 @@ extern "C" { // portability definitions are in global scope, not a namespace

/* wrappers for Visual Studio built-ins that look like gcc built-ins __builtin_ctzll */
/* result might be undefined when input_num is zero */
static inline int roaring_trailing_zeroes(unsigned long long input_num) {
inline int roaring_trailing_zeroes(unsigned long long input_num) {
Copy link
Member

Choose a reason for hiding this comment

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

If we remove static, but leave it inline, we should add an extern inline to a .c file, or e.g. calling it directly in debug mode will fail with a linker error.

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.

Warnings about static mixed with inline
2 participants