diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-01-04 18:11:52 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-01-04 18:59:07 +0000 |
commit | 3343e6fe21259e548cb93748f70e81c7255d7ec7 (patch) | |
tree | 8a4b21e77ff9cd4869753addd800e1248ee06b30 /base/gspmdrv.c | |
parent | 80ceaaec2fe06505cb0a5059ad5f95ea28004f9f (diff) | |
download | ghostpdl-3343e6fe21259e548cb93748f70e81c7255d7ec7.tar.gz |
Squash warnings: Use better unused var paradigm.
Using "n = n;" causes some versions of gcc to whinge. Trying
(void)n; instead.
Diffstat (limited to 'base/gspmdrv.c')
-rw-r--r-- | base/gspmdrv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gspmdrv.c b/base/gspmdrv.c index 0ef1d0cca..b29570ff3 100644 --- a/base/gspmdrv.c +++ b/base/gspmdrv.c @@ -155,7 +155,7 @@ update_func(ULONG unused) BOOL flag; ULONG count; - unused = unused; /* to shut up warning */ + (void)unused; /* to shut up warning */ while (!DosQueryEventSem(update_event_sem, &count)) { /* loop while semaphore exists */ DosWaitEventSem(update_event_sem, SEM_INDEFINITE_WAIT); @@ -172,7 +172,7 @@ exit_func(ULONG code) DosCloseMutexSem(bmp_mutex_sem); DosFreeMem((PVOID) bitmap.pbmi); DosExitList(EXLST_EXIT, 0); - code = code; /* to shut up warning */ + (void)code; /* to shut up warning */ } void |