From 017c4765c5e19669631a0cb6d4c9ca1926b6dcc7 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 7 Aug 2017 03:56:27 -0400 Subject: error trace: remove and fix inadvertent calls to strerror(3). --- src/logic/slbt_exec_compile.c | 3 --- src/logic/slbt_exec_link.c | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index 5e337bb..2612f4a 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -27,9 +27,6 @@ static int slbt_exec_compile_remove_file( if (!(unlink(target)) || (errno == ENOENT)) return 0; - if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) - strerror(errno); - return SLBT_SYSTEM_ERROR(dctx); } diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 0d225c4..38aa5e6 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -495,10 +495,7 @@ static int slbt_exec_link_remove_file( if (!(unlink(target)) || (errno == ENOENT)) return 0; - if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) - strerror(errno); - - return -1; + return SLBT_SYSTEM_ERROR(dctx); } static int slbt_exec_link_create_dep_file( -- cgit v1.2.3