From 5d62f95ec7738638ab16719800e0511891a4b434 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Thu, 27 Feb 2020 23:32:36 +0100 Subject: [PATCH] Use {0} to initialize instead of {NULL} Clang emits a [-Wmissing-field-initializers] when using {NULL} instead of {0} --- ext/phar/func_interceptors.c | 2 +- ext/standard/html.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index 4e5115f884..f0389bf205 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -1100,7 +1100,7 @@ static struct _phar_orig_functions { zif_handler orig_lstat; zif_handler orig_readfile; zif_handler orig_stat; -} phar_orig_functions = {NULL}; +} phar_orig_functions = {0}; void phar_save_orig_functions(void) /* {{{ */ { diff --git a/ext/standard/html.c b/ext/standard/html.c index b7ca69d74e..5eaf7c6711 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1026,7 +1026,7 @@ static const entity_ht *unescape_inverse_map(int all, int flags) * unicode code points */ static entity_table_opt determine_entity_table(int all, int doctype) { - entity_table_opt retval = {NULL}; + entity_table_opt retval = {0}; assert(!(doctype == ENT_HTML_DOC_XML1 && all)); -- 2.50.1