]> 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:51:59 +0000 (01:51 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 30 Mar 2015 01:51:59 +0000 (01:51 +0000)
commitaf0a60c0f7e44f3300ce658eaa00f7756d0f0d36
tree029e3874d3104c54ee6022e21ad36799576c3ced
parent29e6597f0b50274ceba20bdba2291bae370d4dfc
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)

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