packet-epl.c: Fixup missing initializer warnings
authorAhmad Fatoum <ahmad@a3f.at>
Fri, 2 Jun 2017 04:12:31 +0000 (06:12 +0200)
committerGuy Harris <guy@alum.mit.edu>
Fri, 2 Jun 2017 07:42:11 +0000 (07:42 +0000)
commit5a06efc29d8a850571ca7cee16437900f3694fbb
tree1a4f447d7277a9acce1bbf1dcaf477555facb607
parentae1aed917bc856f391bbfc8786923c31de6097b9
packet-epl.c: Fixup missing initializer warnings

macOS Buildbot doesn't like {0} (probably because GNU C already provides {}
exactly for the purpose of initializing all members to zero/NULL/0.0.. etc)

Affected local type definitions now have a static intializer macro that uses
the correct amount of zeroes and braces (similar to PTHREAD_MUTEX_INITIALIZER)
Global type definitions have a memset to zero (Which isn't strictly correct,
but as the platforms we support all have all-bits-zero-nulls and IEEE 754
floats, it should be good enough. A separate change will attempt to disable
-Wmissing-field-initializers -Wmissing-braces globally and hopefully make
these workarounds unnecessary.

Change-Id: I30b0f679bbb8adb2dd7269c9f3bc19732e48212b
Reviewed-on: https://code.wireshark.org/review/21887
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
epan/dissectors/packet-epl-profile-parser.c
epan/dissectors/packet-epl.c
epan/dissectors/packet-epl.h