summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-29 22:31:22 +0000
committermidipix <writeonce@midipix.org>2024-02-29 22:31:22 +0000
commit132ccdba4a23db9769b8332159b3bddeb500b45b (patch)
tree65e45028e76e625891da50087791a1cfadc06c61
parentfe605987ec67cf31eb1203912cc51830db46a4ef (diff)
downloadslibtool-132ccdba4a23db9769b8332159b3bddeb500b45b.tar.bz2
slibtool-132ccdba4a23db9769b8332159b3bddeb500b45b.tar.xz
slbt_exec_ar(): -Wdlsyms accompanying -Wdlunit validation: fix code path.
-rw-r--r--src/logic/slbt_exec_ar.c14
1 files changed, 7 insertions, 7 deletions
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,