app/plug-in, app/gui: Fix initialization warnings

This patch moves two variables to prevent
warnings about variable creation mixing
with usage during build.
This commit is contained in:
Alx Sa 2026-01-08 23:50:12 +00:00
parent 33e638fe5d
commit f2eedcb6ec
2 changed files with 4 additions and 2 deletions

View file

@ -148,12 +148,12 @@ splash_create (Gimp *gimp,
GdkRectangle workarea;
gint max_width;
gint max_height;
gboolean release_splash;
#ifdef G_OS_WIN32
STARTUPINFO StartupInfo;
GetStartupInfo (&StartupInfo);
#endif
gboolean release_splash;
g_return_if_fail (splash == NULL);
g_return_if_fail (GDK_IS_MONITOR (monitor));

View file

@ -129,12 +129,14 @@ gimp_interpreter_db_new (gboolean verbose)
static gboolean
might_be_console_process (void)
{
gboolean attached_to_self;
/* check for Unix console */
if (g_getenv ("TERM") || g_getenv ("SHELL"))
return TRUE;
/* check for Windows console (taken from gspawn-win32.c) */
gboolean attached_to_self = AttachConsole (GetCurrentProcessId ());
attached_to_self = AttachConsole (GetCurrentProcessId ());
g_return_val_if_fail (! attached_to_self, TRUE);
switch (GetLastError ())