From bd8e81f35c86a98ac32827c6352e2927343a740d Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Mon, 6 Feb 2023 12:16:07 +0000 Subject: [PATCH] Move an unused variable into an #ifdef where it is used --- libgnucash/core-utils/binreloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libgnucash/core-utils/binreloc.c b/libgnucash/core-utils/binreloc.c index 9e28cb6678c..2e10e0d01f9 100644 --- a/libgnucash/core-utils/binreloc.c +++ b/libgnucash/core-utils/binreloc.c @@ -106,7 +106,6 @@ _br_find_exe (Gnc_GbrInitError *error) char *line, *result; size_t buf_size = PATH_MAX + 1; FILE *f; - uint32_t size2; #ifdef MAC_INTEGRATION result = gtkosx_application_get_executable_path(); @@ -115,7 +114,7 @@ _br_find_exe (Gnc_GbrInitError *error) g_print ("Application Path %s\n", path2); #elif defined GNC_PLATFORM_OSX /* Native Mac, but not Aqua */ - size2 = buf_size; + uint32_t size2 = buf_size; if (_NSGetExecutablePath (path2, &size2) != 0) { /* buffer not big enough or some other error */