winedump, winegcc pedantic fixes

Joris Huizer joris_huizer at yahoo.com
Sat Feb 17 13:35:43 CST 2007


Skipped content of type multipart/alternative-------------- next part --------------
>From 7551ab47801c0349178c811f93ef91ff5d8d5c16 Mon Sep 17 00:00:00 2001
From: Joris Huizer <jorishuizer at debian.(none)>
Date: Sat, 17 Feb 2007 19:34:51 +0100
Subject: [PATCH] winedump: -pedantic fixes
To: wine-patches <wine-patches at winehq.org>

---
 tools/winedump/lib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winedump/lib.c b/tools/winedump/lib.c
index 155a6fa..9f68cab 100644
--- a/tools/winedump/lib.c
+++ b/tools/winedump/lib.c
@@ -106,9 +106,9 @@ static void dump_long_import(const void
         }
         else if (globals.do_debug && !strcmp((const char *)ish[i].Name, ".debug$S"))
         {
-            const char *imp_debug$ = (const char *)base + ish[i].PointerToRawData;
+            const char *imp_debug = (const char *)base + ish[i].PointerToRawData;
 
-            codeview_dump_symbols(imp_debug$, ish[i].SizeOfRawData);
+            codeview_dump_symbols(imp_debug, ish[i].SizeOfRawData);
             printf("\n");
         }
     }
-- 
1.4.4

-------------- next part --------------
>From 80dadf4530c2e05d8b2f42c9cd4029dbc3eb4530 Mon Sep 17 00:00:00 2001
From: Joris Huizer <jorishuizer at debian.(none)>
Date: Sat, 17 Feb 2007 19:35:03 +0100
Subject: [PATCH] winegcc: -pedantic fixes
To: wine-patches <wine-patches at winehq.org>

---
 tools/winegcc/utils.c   |    2 +-
 tools/winegcc/winegcc.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/winegcc/utils.c b/tools/winegcc/utils.c
index c5b46a4..f62500f 100644
--- a/tools/winegcc/utils.c
+++ b/tools/winegcc/utils.c
@@ -205,7 +205,7 @@ void create_file(const char* name, int m
 file_type get_file_type(const char* filename)
 {
     /* see tools/winebuild/res32.c: check_header for details */
-    static const char res_sig[] = { 0,0,0,0, 32,0,0,0, 0xff,0xff, 0,0, 0xff,0xff, 0,0, 0,0,0,0, 0,0, 0,0, 0,0,0,0, 0,0,0,0 };
+    static const unsigned char res_sig[] = { 0,0,0,0, 32,0,0,0, 0xff,0xff, 0,0, 0xff,0xff, 0,0, 0,0,0,0, 0,0, 0,0, 0,0,0,0, 0,0,0,0 };
     char buf[sizeof(res_sig)];
     int fd, cnt;
 
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index f1a7bb0..7ce841f 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -189,7 +189,7 @@ static char* get_temp_file(const char* p
     int fd;
     char* tmp = strmake("%s-XXXXXX%s", prefix, suffix);
 
-#ifdef HAVE_SIGPROCMASK
+#if defined(HAVE_SIGPROCMASK) && defined(HAVE_SIGSET_T)
     sigset_t old_set;
     /* block signals while manipulating the temp files list */
     sigprocmask( SIG_BLOCK, &signal_mask, &old_set );
@@ -205,7 +205,7 @@ static char* get_temp_file(const char* p
     }
     close( fd );
     strarray_add(tmp_files, tmp);
-#ifdef HAVE_SIGPROCMASK
+#if defined(HAVE_SIGPROCMASK) && defined(HAVE_SIGSET_T)
     sigprocmask( SIG_SETMASK, &old_set, NULL );
 #endif
     return tmp;
-- 
1.4.4



More information about the wine-patches mailing list