From 132ccdba4a23db9769b8332159b3bddeb500b45b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 29 Feb 2024 22:31:22 +0000 Subject: slbt_exec_ar(): -Wdlsyms accompanying -Wdlunit validation: fix code path. --- src/logic/slbt_exec_ar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/logic/slbt_exec_ar.c') diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c index ad8896c..4bf7c41 100644 --- a/src/logic/slbt_exec_ar.c +++ b/src/logic/slbt_exec_ar.c @@ -307,7 +307,7 @@ int slbt_exec_ar(const struct slbt_driver_ctx * dctx) (void)0; } else if (cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_DLSYMS) { - if (!cctx->dlunit) + if (!cctx->dlunit) { slbt_dprintf(fderr, "%s: missing -Wdlunit: generation of a dlsyms vtable " "requires the name of the dynamic library, executable " @@ -315,12 +315,12 @@ int slbt_exec_ar(const struct slbt_driver_ctx * dctx) "be generated.\n", dctx->program); - return slbt_exec_ar_fail( - ectx,meta, - SLBT_CUSTOM_ERROR( - dctx, - SLBT_ERR_AR_DLUNIT_NOT_SPECIFIED)); - + return slbt_exec_ar_fail( + ectx,meta, + SLBT_CUSTOM_ERROR( + dctx, + SLBT_ERR_AR_DLUNIT_NOT_SPECIFIED)); + } } else if (!(cctx->drvflags & SLBT_DRIVER_MODE_AR_ACTIONS)) { if (cctx->drvflags & SLBT_DRIVER_VERBOSITY_ERRORS) slbt_dprintf(fderr, -- cgit v1.2.3