Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

inline declaration removal #19

Merged
merged 1 commit into from
Dec 3, 2015
Merged

Conversation

akosthekiss
Copy link
Contributor

GCC 5 is more strict about inline semantics: inline declaration without definition emits warning during compilation and will also cause an undefined reference error during linking.

Thus, removing the inline specifier from the declarations of uv__time_precise().

fixes #18

Notes:

  • Works on linux, speculatively applying the inline specifier removal to other targets as well.
  • Admittedly not sure why the inlines were there originally. The only headers that contain inline are the three uv_platforms.hs and only for uv__time_precise().

@seanshpark
Copy link
Contributor

why the inlines were there originally : I think it was to reduce one function call while making libtuv from libuv for often called time access function.

@seanshpark
Copy link
Contributor

can you rebase this as #17 is merged?

@akosthekiss
Copy link
Contributor Author

Sure, rebased.

@seanshpark
Copy link
Contributor

@akiss77 , I'm so sorry I didn't see you have already rebased and I made a commit after your rebase. can you please rebase again?
I think as this PR is opened in my browser in an another tab, so there was no notification :(

GCC 5 is more strict about inline semantics: inline declaration
without definition emits warning during compilation and will also
cause an undefined reference error during linking.

Thus, removing the inline specifier from the declarations of
uv__time_precise().

libtuv-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
@akosthekiss
Copy link
Contributor Author

@seanshpark no worries, here it goes :)

@seanshpark seanshpark merged commit 22eebb7 into Samsung:master Dec 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined reference error to uv__time_precise() with gcc 5
2 participants