aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2022-07-12 16:14:58 +0000
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-07-15 13:45:52 +0000
commitb68acb6bffd9e4e9d1f55d95ab768cf7decd6861 (patch)
treece5e0c37b4d0693a2bfc4991064c2102ea6fc3ff /epan/wslua
parent1ca19b3c384ffb4d925574989e3b4fb5d474513b (diff)
pcre2: Fix -Wmissing-prototypes
lpcre2.c:506:13: warning: no previous prototype for function 'luaopen_rex_pcre2' lpcre2_f.c:207:5: warning: no previous prototype for function 'Lpcre2_config' lpcre2_f.c:234:5: warning: no previous prototype for function 'Lpcre2_get_flags'
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/lrexlib/pcre2/lpcre2.c1
-rw-r--r--epan/wslua/lrexlib/pcre2/lpcre2_f.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/epan/wslua/lrexlib/pcre2/lpcre2.c b/epan/wslua/lrexlib/pcre2/lpcre2.c
index e99179a9b4..01b29c432a 100644
--- a/epan/wslua/lrexlib/pcre2/lpcre2.c
+++ b/epan/wslua/lrexlib/pcre2/lpcre2.c
@@ -51,6 +51,7 @@ DIAG_OFF_CLANG(comma)
#include "lua.h"
#include "lauxlib.h"
#include "../common.h"
+#include "../../wslua.h"
extern int Lpcre2_get_flags (lua_State *L);
extern int Lpcre2_config (lua_State *L);
diff --git a/epan/wslua/lrexlib/pcre2/lpcre2_f.c b/epan/wslua/lrexlib/pcre2/lpcre2_f.c
index 2c55d51c01..659c8ac7fd 100644
--- a/epan/wslua/lrexlib/pcre2/lpcre2_f.c
+++ b/epan/wslua/lrexlib/pcre2/lpcre2_f.c
@@ -33,6 +33,9 @@
#define VERSION_PCRE2 (PCRE2_MAJOR*100 + PCRE2_MINOR)
+extern int Lpcre2_get_flags (lua_State *L);
+extern int Lpcre2_config (lua_State *L);
+
static flag_pair pcre2_flags[] = {
{ "MAJOR", PCRE2_MAJOR },
{ "MINOR", PCRE2_MINOR },
@@ -204,7 +207,7 @@ static flag_pair pcre2_config_flags[] = {
{ NULL, 0 }
};
-int Lpcre2_config (lua_State *L) {
+extern int Lpcre2_config (lua_State *L) {
flag_pair *fp;
if (lua_istable (L, 1))
lua_settop (L, 1);
@@ -231,7 +234,7 @@ int Lpcre2_config (lua_State *L) {
return 1;
}
-int Lpcre2_get_flags (lua_State *L) {
+extern int Lpcre2_get_flags (lua_State *L) {
const flag_pair* fps[] = { pcre2_flags, pcre2_error_flags, NULL };
return get_flags (L, fps);
}