mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Move an unused variable into an #ifdef where it is used
This commit is contained in:
parent
1c6679720b
commit
bd8e81f35c
@ -106,7 +106,6 @@ _br_find_exe (Gnc_GbrInitError *error)
|
|||||||
char *line, *result;
|
char *line, *result;
|
||||||
size_t buf_size = PATH_MAX + 1;
|
size_t buf_size = PATH_MAX + 1;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
uint32_t size2;
|
|
||||||
|
|
||||||
#ifdef MAC_INTEGRATION
|
#ifdef MAC_INTEGRATION
|
||||||
result = gtkosx_application_get_executable_path();
|
result = gtkosx_application_get_executable_path();
|
||||||
@ -115,7 +114,7 @@ _br_find_exe (Gnc_GbrInitError *error)
|
|||||||
g_print ("Application Path %s\n", path2);
|
g_print ("Application Path %s\n", path2);
|
||||||
#elif defined GNC_PLATFORM_OSX
|
#elif defined GNC_PLATFORM_OSX
|
||||||
/* Native Mac, but not Aqua */
|
/* Native Mac, but not Aqua */
|
||||||
size2 = buf_size;
|
uint32_t size2 = buf_size;
|
||||||
if (_NSGetExecutablePath (path2, &size2) != 0)
|
if (_NSGetExecutablePath (path2, &size2) != 0)
|
||||||
{
|
{
|
||||||
/* buffer not big enough or some other error */
|
/* buffer not big enough or some other error */
|
||||||
|
Loading…
Reference in New Issue
Block a user