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

Add static to inline functions #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ffontaine
Copy link

@ffontaine ffontaine commented Aug 17, 2020

This is needed to avoid a link error where the inline functions appear
missing at link time.
From c99 standard inline function should either be declared static or
have an extern instance in a c file for linking.
This fix is necessary to build with gcc 7; for some reason it was not
trigerred before.

Signed-off-by: Julien Viard de Galbert julien@vdg.name
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/dieharder/0004-Add-static-to-inline-functions.patch]
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

This is needed to avoid a link error where the inline functions appear
missing at link time.
From c99 standard inline function should either be declared static or
have an extern instance in a c file for linking.
This fix is necessary to build with gcc 7; for some reason it was not
trigerred before.

Signed-off-by: Julien Viard de Galbert <julien@vdg.name>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/dieharder/0004-Add-static-to-inline-functions.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Copy link

@marcusmueller marcusmueller left a comment

These changes are appropriate and I recommend merging them. static makes the insert symbol only visible inside the the compilation unit (i.e., dab_filltree.o) itself, otherwise I'm running into linking errors.

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.

None yet

2 participants