forked from ericboesch/bitset
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace inline to static to resolve compiler issue
- Loading branch information
Kien Phung
committed
Oct 15, 2018
1 parent
e338bd0
commit 8c0dc8f
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8c0dc8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some information about the issue:
https://gcc.gnu.org/gcc-5/porting_to.html
https://bugzilla.redhat.com/show_bug.cgi?id=1494052
I suppose the version of GCC used up to now was 4.X.X. Thus it had the earlier GNU89
inline
semantics (C89 did not have the keywordinline
at all). While GCC versions after 5.0.0 use C99 semantics, which does not produce an out of line definition for the function. I suppose the reason is that this code uses function pointers which somehow does not let the functions inlined and the code produced by the compiler expects definitions from an external translation unit.