aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2022-07-10 17:24:31 +0000
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-07-15 13:45:52 +0000
commit1ca19b3c384ffb4d925574989e3b4fb5d474513b (patch)
tree3cc45ee8e26501cfd2e2aa48a73c85229514d0b6 /epan
parent52ddd86929085a3c212fcefb99fa93765bbb698e (diff)
Fix -Wmissing-prototypes found by Clang
ftype-double.c:89:1: warning: no previous prototype for function 'val_unary_minus' ftype-double.c:96:1: warning: no previous prototype for function 'val_add' ftype-double.c:103:1: warning: no previous prototype for function 'val_subtract' ftype-double.c:110:1: warning: no previous prototype for function 'val_multiply' ftype-double.c:117:1: warning: no previous prototype for function 'val_divide' ftype-integer.c:670:1: warning: no previous prototype for function 'uint_bitwise_and' ftype-integer.c:677:1: warning: no previous prototype for function 'uint_is_zero' ftype-integer.c:683:1: warning: no previous prototype for function 'uint_is_negative' ftype-integer.c:689:1: warning: no previous prototype for function 'uint_unary_minus' ftype-integer.c:704:1: warning: no previous prototype for function 'uint64_bitwise_and' ftype-integer.c:711:1: warning: no previous prototype for function 'uint64_is_zero' ftype-integer.c:717:1: warning: no previous prototype for function 'uint64_is_negative' ftype-integer.c:723:1: warning: no previous prototype for function 'uint64_unary_minus' ftype-integer.c:738:1: warning: no previous prototype for function 'sint_bitwise_and' ftype-integer.c:745:1: warning: no previous prototype for function 'sint_is_zero' ftype-integer.c:751:1: warning: no previous prototype for function 'sint_is_negative' ftype-integer.c:757:1: warning: no previous prototype for function 'sint_unary_minus ftype-integer.c:764:1: warning: no previous prototype for function 'sint64_bitwise_and' ftype-integer.c:771:1: warning: no previous prototype for function 'sint64_is_zero' ftype-integer.c:777:1: warning: no previous prototype for function 'sint64_is_negative' ftype-integer.c:783:1: warning: no previous prototype for function 'sint64_unary_minus' packet-bpv6.c:2182:1: warning: no previous prototype for function 'proto_register_bpv6' packet-bpv6.c:2766:1: warning: no previous prototype for function 'proto_reg_handoff_bpv6' packet-bpv7.c:1978:6: warning: no previous prototype for function 'proto_register_bpv7' packet-bpv7.c:2037:6: warning: no previous prototype for function 'proto_reg_handoff_bpv7' packet-realtek.c:349:1: warning: no previous prototype for function 'proto_register_realtek' packet-realtek.c:436:1: warning: no previous prototype for function 'proto_reg_handoff_realtek' packet-tcpcl.c:2147:1: warning: no previous prototype for function 'proto_register_tcpclv3' packet-tcpcl.c:2211:1: warning: no previous prototype for function 'proto_reg_handoff_tcpclv3'
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-bpv6.c3
-rw-r--r--epan/dissectors/packet-bpv7.c3
-rw-r--r--epan/dissectors/packet-realtek.c3
-rw-r--r--epan/dissectors/packet-tcpcl.c2
-rw-r--r--epan/ftypes/ftype-double.c10
-rw-r--r--epan/tvbuff_rdp.c2
6 files changed, 17 insertions, 6 deletions
diff --git a/epan/dissectors/packet-bpv6.c b/epan/dissectors/packet-bpv6.c
index 45140f519e..a4e0f31cfd 100644
--- a/epan/dissectors/packet-bpv6.c
+++ b/epan/dissectors/packet-bpv6.c
@@ -47,6 +47,9 @@
#include "packet-bpv6.h"
#include "packet-cfdp.h"
+void proto_register_bpv6(void);
+void proto_reg_handoff_bpv6(void);
+
static int dissect_admin_record(proto_tree *primary_tree, tvbuff_t *tvb, packet_info *pinfo,
int offset, int payload_length, gboolean* success);
diff --git a/epan/dissectors/packet-bpv7.c b/epan/dissectors/packet-bpv7.c
index 3b00f03bbb..6a23b07f88 100644
--- a/epan/dissectors/packet-bpv7.c
+++ b/epan/dissectors/packet-bpv7.c
@@ -29,6 +29,9 @@
#include <wsutil/utf8_entities.h>
#include <inttypes.h>
+void proto_register_bpv7(void);
+void proto_reg_handoff_bpv7(void);
+
/// Protocol column name
static const char *const proto_name_bp = "BPv7";
static const char *const proto_name_bp_admin = "BPv7 Admin";
diff --git a/epan/dissectors/packet-realtek.c b/epan/dissectors/packet-realtek.c
index 24550372b4..885b9c8226 100644
--- a/epan/dissectors/packet-realtek.c
+++ b/epan/dissectors/packet-realtek.c
@@ -18,6 +18,9 @@
#include <epan/packet.h>
#include <etypes.h>
+void proto_register_realtek(void);
+void proto_reg_handoff_realtek(void);
+
#define RTL_PROTOCOL_RRCP 0x01 /* RRCP */
#define RTL_PROTOCOL_REP 0x02 /* REP */
#define RTL_PROTOCOL_RLDP 0x03 /* RLDP */
diff --git a/epan/dissectors/packet-tcpcl.c b/epan/dissectors/packet-tcpcl.c
index 8443041e74..02a2954375 100644
--- a/epan/dissectors/packet-tcpcl.c
+++ b/epan/dissectors/packet-tcpcl.c
@@ -53,6 +53,8 @@
#include <epan/dissectors/packet-bpv6.h>
#include "packet-tcpcl.h"
+void proto_register_tcpclv3(void);
+void proto_reg_handoff_tcpclv3(void);
static const char magic[] = {'d', 't', 'n', '!'};
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c
index 07ed61fcd3..daf4875863 100644
--- a/epan/ftypes/ftype-double.c
+++ b/epan/ftypes/ftype-double.c
@@ -85,35 +85,35 @@ double_val_to_repr(wmem_allocator_t *scope, const fvalue_t *fv, ftrepr_t rtype _
return buf;
}
-enum ft_result
+static enum ft_result
val_unary_minus(fvalue_t * dst, const fvalue_t *src, char **err_ptr _U_)
{
dst->value.floating = -src->value.floating;
return FT_OK;
}
-enum ft_result
+static enum ft_result
val_add(fvalue_t * dst, const fvalue_t *a, const fvalue_t *b, char **err_ptr _U_)
{
dst->value.floating = a->value.floating + b->value.floating;
return FT_OK;
}
-enum ft_result
+static enum ft_result
val_subtract(fvalue_t * dst, const fvalue_t *a, const fvalue_t *b, char **err_ptr _U_)
{
dst->value.floating = a->value.floating - b->value.floating;
return FT_OK;
}
-enum ft_result
+static enum ft_result
val_multiply(fvalue_t * dst, const fvalue_t *a, const fvalue_t *b, char **err_ptr _U_)
{
dst->value.floating = a->value.floating * b->value.floating;
return FT_OK;
}
-enum ft_result
+static enum ft_result
val_divide(fvalue_t * dst, const fvalue_t *a, const fvalue_t *b, char **err_ptr _U_)
{
dst->value.floating = a->value.floating / b->value.floating;
diff --git a/epan/tvbuff_rdp.c b/epan/tvbuff_rdp.c
index 8487df384b..0e3c7938ce 100644
--- a/epan/tvbuff_rdp.c
+++ b/epan/tvbuff_rdp.c
@@ -322,7 +322,7 @@ zgfx_write_from_history(zgfx_context_t *zgfx, guint32 distance, guint32 count)
}
-gboolean
+static gboolean
rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
{
bitstream_t bitstream;