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 "unused function" warning seen with gcc. #1

Merged
merged 1 commit into from
Dec 30, 2015
Merged

Fix "unused function" warning seen with gcc. #1

merged 1 commit into from
Dec 30, 2015

Conversation

prideout
Copy link
Contributor

highestBitSet does not use log2 when using a newish Microsoft compiler or gcc. Therefore log2 needs to be defined only when neither using a newish Microsoft compiler, nor gcc. De Morgan's laws in action!

@gpakosz
Copy link
Owner

gpakosz commented Dec 30, 2015

Good catch! Can you please amend your commit with the same change for PackedArraySIMD.c and force-push?

highestBitSet does not use log2 when using a newish Microsoft compiler
or gcc.  Therefore log2 needs to be defined only when neither using a
newish Microsoft compiler, nor gcc.  De Morgan's laws in action!
@philip-napofearth
Copy link

Done!

gpakosz added a commit that referenced this pull request Dec 30, 2015
fixed unused function '__PackedArray_log2' warning seen with gcc.
@gpakosz gpakosz merged commit a4cffc2 into gpakosz:master Dec 30, 2015
@gpakosz
Copy link
Owner

gpakosz commented Dec 30, 2015

Thanks Philip!

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.

3 participants