diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-01-25 12:30:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-25 12:30:52 -0500 |
| commit | ff6fd1cc8a7fb8e4b3bb91e1a639a5c39a280ef1 (patch) | |
| tree | 61ceabb6a0c1babdebd2c2d2a3d53301409c058e /lib/frrlua.h | |
| parent | 431deca7ea1bba67d4eef442117ed3255982e066 (diff) | |
| parent | ea6caa1f523a355cc95a1c73432e595f5ef4ec46 (diff) | |
Merge pull request #7923 from donaldsharp/gcc10-cleanups
Gcc10 cleanups
Diffstat (limited to 'lib/frrlua.h')
| -rw-r--r-- | lib/frrlua.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h index 8e52931e50..6fb30938b0 100644 --- a/lib/frrlua.h +++ b/lib/frrlua.h @@ -35,6 +35,17 @@ extern "C" { #endif /* + * gcc-10 is complaining about the wrapper function + * not being compatible with lua_pushstring returning + * a char *. Let's wrapper it here to make our life + * easier + */ +static inline void lua_pushstring_wrapper(lua_State *L, const char *str) +{ + (void)lua_pushstring(L, str); +} + +/* * Converts a prefix to a Lua value and pushes it on the stack. */ void lua_pushprefix(lua_State *L, const struct prefix *prefix); |
