From: Jiri Denemark Date: Thu, 20 Feb 2025 13:02:33 +0000 (+0100) Subject: build: Enable syntax checks for vshError and vshWarn X-Git-Tag: v11.1.0-rc1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce66d7e01ba7c6f4eab5aff152c10b613e357204;p=thirdparty%2Flibvirt.git build: Enable syntax checks for vshError and vshWarn To make sure both error and warning messages printed by virsh are properly marked for translation. Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index bd3dd6cb54..d414e033df 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -401,6 +401,8 @@ msg_gen_function += virReportError msg_gen_function += virReportErrorHelper msg_gen_function += virReportSystemError msg_gen_function += virLastErrorPrefixMessage +msg_gen_function += vshError +msg_gen_function += vshWarn # Uncomment the following and run "ninja test" to see diagnostics # that are not yet marked for translation, but that need to be rewritten @@ -408,7 +410,6 @@ msg_gen_function += virLastErrorPrefixMessage # msg_gen_function += fprintf # msg_gen_function += testError # msg_gen_function += vshPrint -# msg_gen_function += vshError space = $(null) $(null) func_re= ($(subst $(space),|,$(msg_gen_function)))