Skip to content

Commit

Permalink
Revert "make tdb_cursor_next static inline"
Browse files Browse the repository at this point in the history
This reverts commit 421b31d.
  • Loading branch information
knutin committed Jun 2, 2016
1 parent f1fbe72 commit 2385d92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/traildb.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ tdb_cursor_next() is defined here so it can be inlined
the pragma is a workaround for older GCCs that have this issue:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113
*/
static inline const tdb_event *tdb_cursor_next(tdb_cursor *cursor)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
__attribute__((visibility("default"))) inline const tdb_event *tdb_cursor_next(tdb_cursor *cursor)
{
if (cursor->num_events_left > 0 || _tdb_cursor_next_batch(cursor)){
const tdb_event *e = (const tdb_event*)cursor->next_event;
Expand All @@ -224,5 +226,6 @@ static inline const tdb_event *tdb_cursor_next(tdb_cursor *cursor)
}else
return NULL;
}
#pragma GCC diagnostic pop

#endif /* __TRAILDB_H__ */

0 comments on commit 2385d92

Please sign in to comment.