[gimp] libgimpbase, tools: clean some warnings on a Win32 build.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpbase, tools: clean some warnings on a Win32 build.
- Date: Sun, 28 Jan 2018 14:45:46 +0000 (UTC)
commit 9ca8899a1276a675b954004e71174fc9a9bcb204
Author: Jehan <jehan girinstud io>
Date: Fri Jan 26 22:14:11 2018 +0100
libgimpbase, tools: clean some warnings on a Win32 build.
libgimpbase/gimpdatafiles.c | 2 +-
tools/gimp-debug-resume.c | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libgimpbase/gimpdatafiles.c b/libgimpbase/gimpdatafiles.c
index 3a0e194..dc75ae2 100644
--- a/libgimpbase/gimpdatafiles.c
+++ b/libgimpbase/gimpdatafiles.c
@@ -200,7 +200,7 @@ is_script (const gchar *filename)
if (exts == NULL)
{
- pathext = g_getenv ("PATHEXT");
+ pathext = (gchar *) g_getenv ("PATHEXT");
if (pathext != NULL)
{
exts = g_strsplit (pathext, G_SEARCHPATH_SEPARATOR_S, 100);
diff --git a/tools/gimp-debug-resume.c b/tools/gimp-debug-resume.c
index 57633bf..f5294df 100644
--- a/tools/gimp-debug-resume.c
+++ b/tools/gimp-debug-resume.c
@@ -28,7 +28,7 @@ resume_process (DWORD dwOwnerPID)
if (te32.th32OwnerProcessID == dwOwnerPID)
{
HANDLE hThread = OpenThread (THREAD_SUSPEND_RESUME, FALSE, te32.th32ThreadID);
- printf ("Resuming Thread: %u\n",te32.th32ThreadID);
+ printf ("Resuming Thread: %u\n", (unsigned int) te32.th32ThreadID);
ResumeThread (hThread);
CloseHandle (hThread);
}
@@ -62,7 +62,9 @@ process_list (void)
{
do
{
- printf ("PID:\t%u\t%s\n", pe32.th32ProcessID, pe32.szExeFile);
+ printf ("PID:\t%u\t%s\n",
+ (unsigned int) pe32.th32ProcessID,
+ pe32.szExeFile);
}
while (Process32Next (hProcessSnap, &pe32));
bRet = TRUE;
@@ -90,12 +92,12 @@ main (int argc,
pid = atoi (argv[1]);
if (pid == 0)
{
- printf ("invalid: %s\n", pid);
+ printf ("invalid: %lu\n", pid);
return 1;
}
else
{
- printf ("process: %u\n", pid);
+ printf ("process: %lu\n", pid);
resume_process (pid);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]