summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2022-02-14 21:02:10 -0500
committerHubert Figuière <hub@figuiere.net>2022-02-14 21:02:10 -0500
commit11feeb3d7614a772bbce3ce839c7085b88b4e8bb (patch)
treef128fe2c6e064fb5e6ab874228e230ff7b9f2cfa
parent934dff8d5cc3b6cd02a97cf7576397012331305e (diff)
Fix initializer to use standard C++
-rw-r--r--configure.ac1
-rw-r--r--samples/source/common/DumpFile.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index acd5c18..2b44a84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -249,6 +249,7 @@ dnl -Wformat-nonliteral \
-Werror=missing-field-initializers \
-Woverloaded-virtual \
-Wpointer-arith \
+ -Wgnu-array-member-paren-init \
dnl -Wredundant-decls \
-Wpointer-bool-conversion \
-Wshadow \
diff --git a/samples/source/common/DumpFile.cpp b/samples/source/common/DumpFile.cpp
index eef46b4..f845bbd 100644
--- a/samples/source/common/DumpFile.cpp
+++ b/samples/source/common/DumpFile.cpp
@@ -533,7 +533,7 @@ struct ASF_GUID {
// (Exempi) needs a proper constructor
ASF_GUID()
: part1(0), part2(0), part3(0), part4(0),
- part5({ 0, 0, 0, 0, 0, 0 })
+ part5{ 0, 0, 0, 0, 0, 0 }
{
}
ASF_GUID(XMP_Uns32 p1, XMP_Uns16 p2, XMP_Uns16 p3, XMP_Uns16 p4, const void* p5)