[PATCH] fix clang / Xcode compilation error

Compiling Wireshark with the current version of Apple's developer toolchain results in the following error:
/usr/local/include/smi.h:319:1: error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wc++-compat] } SmiElement;
Would it make sense to remove the __GNUC__ check in smi.h as per the attached patch?

On Thu, Oct 17, 2013 at 03:18:01PM -0700, Gerald Combs wrote:
Compiling Wireshark with the current version of Apple's developer toolchain results in the following error:
/usr/local/include/smi.h:319:1: error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wc++-compat] } SmiElement;
Would it make sense to remove the __GNUC__ check in smi.h as per the attached patch?
Yep, since C99 generally forbids empty structs, I have removed the __GNUC__ check.
/js
participants (2)
-
Gerald Combs
-
Juergen Schoenwaelder