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

Commit

Permalink
inline declaration removal
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
akosthekiss committed Dec 2, 2015
1 parent ae24ad8 commit f51e01e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/linux/uv_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ uint64_t uv__hrtime(uv_clocktype_t type);
#define uv__update_time(loop) \
loop->time = uv__hrtime(UV_CLOCK_FAST) / 1000000

inline uint64_t uv__time_precise();
uint64_t uv__time_precise();


//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion source/mbed/uv_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ uint64_t uv__hrtime(uv_clocktype_t type);
#define uv__update_time(loop) \
loop->time = uv__hrtime(UV_CLOCK_FAST) / 1000000

inline uint64_t uv__time_precise();
uint64_t uv__time_precise();

void uv__time_init(void);

Expand Down
2 changes: 1 addition & 1 deletion source/nuttx/uv_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ uint64_t uv__hrtime();
#define uv__update_time(loop) \
loop->time = uv__hrtime() / 1000000

inline uint64_t uv__time_precise();
uint64_t uv__time_precise();


//-----------------------------------------------------------------------------
Expand Down

0 comments on commit f51e01e

Please sign in to comment.