diff options
author | ruengeler <ruengeler@wireshark.org> | 2014-05-28 13:19:50 +0200 |
---|---|---|
committer | Michael Tüxen <tuexen@wireshark.org> | 2014-05-28 14:33:50 +0000 |
commit | 925b48ec75b9d72f15793a399732108b8669ba2e (patch) | |
tree | f677e622144627bba411d4e7d8c93b6e320428cd /capture_session.h | |
parent | 9d77e7cff82d5c2c2ccf6af0a2e27bf932396c52 (diff) |
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>
Diffstat (limited to 'capture_session.h')
-rw-r--r-- | capture_session.h | 3 |
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 */ |