scripts: squash a -Wmaybe-uninitialized

Closes: #968
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2017-09-01 13:44:22 -04:00 committed by Atomic Bot
parent a78a88844c
commit 5294c1ea69
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ git clean -dfx
# And now a clang build to find unused variables
export CC=clang
export CFLAGS='-Werror=unused-variable'
export CFLAGS='-Werror=unused-variable -Werror=maybe-uninitialized'
build_default
# don't actually run the tests, just compile them
/usr/bin/make check TESTS=

View File

@ -488,6 +488,8 @@ rpmostree_script_run_sync (DnfPackage *pkg,
case RPMOSTREE_SCRIPT_POSTTRANS:
scriptkind = &posttrans_script;
break;
default:
g_assert_not_reached ();
}
gboolean did_run = FALSE;