summaryrefslogtreecommitdiff
path: root/capture_session.h
diff options
context:
space:
mode:
authorruengeler <ruengeler@wireshark.org>2014-05-28 13:19:50 +0200
committerGuy Harris <guy@alum.mit.edu>2014-05-29 18:23:21 +0000
commitcb26f37bad97444aebdfd6888f46f41d1e45d3d8 (patch)
tree6323d885c83d210e84c8d60432abc9349e337562 /capture_session.h
parent2e41a532e91dfd1c2b1afa4774f1d42ed1a5bddb (diff)
downloadwireshark-cb26f37bad97444aebdfd6888f46f41d1e45d3d8.tar.gz
Clang complains about the size of empty structs.
Change-Id: I2951b1b384cf9b32677aea81c66c34ab07b0090f Reviewed-on: https://code.wireshark.org/review/1835 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Tüxen <tuexen@wireshark.org> (cherry picked from commit 925b48ec75b9d72f15793a399732108b8669ba2e) Reviewed-on: https://code.wireshark.org/review/1871 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capture_session.h')
-rw-r--r--capture_session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/capture_session.h b/capture_session.h
index cec3ca8ed8..0a9485e8d8 100644
--- a/capture_session.h
+++ b/capture_session.h
@@ -58,7 +58,8 @@ extern void
capture_session_init(capture_session *cap_session, void *cf);
#else
-typedef struct {} capture_session;
+/* dummy is needed because clang throws the error: empty struct has size 0 in C, size 1 in C++ */
+typedef struct {int dummy;} capture_session;
#endif /* HAVE_LIBPCAP */