From c1d7f1a6206491cff707f6ae3fe46cfe03216eff Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 4 Feb 2017 19:06:58 -0600 Subject: [PATCH] main: install a warning handler if --validate is requested --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 4acc3d9..421954a 100644 --- a/main.c +++ b/main.c @@ -763,6 +763,9 @@ main(int argc, char *argv[]) if (getenv("PKG_CONFIG_DONT_RELOCATE_PATHS")) want_flags |= (PKG_DONT_RELOCATE_PATHS); + if ((want_flags & PKG_VALIDATE) == PKG_VALIDATE) + pkgconf_client_set_warn_handler(&pkg_client, error_handler, NULL); + if ((want_flags & PKG_ABOUT) == PKG_ABOUT) { about();