]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix warning for -Wgnu-variable-sized-type-not-at-end
authorMatthew Jordan <mjordan@digium.com>
Mon, 30 Mar 2015 01:52:47 +0000 (01:52 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 30 Mar 2015 01:52:47 +0000 (01:52 +0000)
commitdbb4d6f9e7a820d3ab95550fc4d392c97c098f2f
tree4c44f371cc37c2928517422c98433b4b917a1e6d
parente126ab9eebc6db005df31280ff8e596ba6562426
clang compiler warnings: Fix warning for -Wgnu-variable-sized-type-not-at-end

This patch fixes a warning caught by clang, wherein a variable sized struct is
not located at the end of a struct. While the code in question actually
expected this, this is a good warning to watch for. Hence, this patch refactors
the code in question to not have two variable length elements in the same
struct.

Review: https://reviewboard.asterisk.org/r/4530/

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4530.patch submitted by dkdegroot (License 6600)
........

Merged revisions 433717 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/stdtime/localtime.c