With "-Wextra", gcc emits warnings such as:
> test-multi-match.c:58:24: warning: missing initializer for field
> ‘options’ of ‘mexp_regexp’ [-Wmissing-field-initializers]
Although the code is not incorrect, let's just shut up the warnings, so we
can enable "-Wextra" later (which did catch an actual bug; see the
previous patch).
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
switch (mexp_expect (h,
(mexp_regexp[]) {
- { 100, ls_coreutils_re },
- { 101, ls_busybox_re },
+ { 100, ls_coreutils_re, 0 },
+ { 101, ls_busybox_re, 0 },
{ 0 },
}, match_data)) {
case 100:
for (i = 0; i < 5; ++i) {
r = mexp_expect (h,
(mexp_regexp[]) {
- { 100, multi_re },
- { 101, match_re },
- { 102, ing_re },
- { 103, str_re },
- { 104, s_re },
+ { 100, multi_re, 0 },
+ { 101, match_re, 0 },
+ { 102, ing_re, 0 },
+ { 103, str_re, 0 },
+ { 104, s_re, 0 },
{ 0 },
}, match_data);
switch (r) {