Skip to content
Permalink
Browse files

RF64: Assume DS64 header table is empty

 The table is generally not used.

 This fixes compatibility with GCC 6+.

 Note that the behavior after the change should match what was compiled
 in GCC 5.

 "While in GCC 5 and prior the type of a flexible array member is an
 array of zero elements (a GCC extension), in GCC 6 it is that of an
 array of an unspecified bound (i.e., T[] as opposed to T[0])."

 https://gcc.gnu.org/gcc-6/porting_to.html#flexible-array-members

 This should fix #1.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
  • Loading branch information...
MoSal committed Dec 19, 2017
1 parent d110728 commit 36b7b108a2a3234733a792222e97de0eefd239cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 units/nWav.cpp
@@ -222,7 +222,7 @@ struct tDS64Header

uint32_t TableLength;

tChunkSize64 Table[];
tChunkSize64 Table[0];
};


0 comments on commit 36b7b10

Please sign in to comment.
You can’t perform that action at this time.