From c9742b32042b43e780147a10485c5b031b4decfa Mon Sep 17 00:00:00 2001 From: Niels Kristian Bech Jensen Date: Tue, 28 Mar 2000 20:44:59 +0000 Subject: [PATCH] - Fix some compiler warnings. - Remove superfluous #include statement. --- dlls/dsound/dsound_main.c | 2 +- dlls/winaspi/winaspi16.c | 1 - graphics/path.c | 6 +++--- programs/winhelp/macro.yacc.y | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 2eec215a71..d24ffd095c 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -1192,7 +1192,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFrequency( return DSERR_INVALIDPARAM; *freq = This->freq; - TRACE("-> %d\n", *freq); + TRACE("-> %ld\n", *freq); return DS_OK; } diff --git a/dlls/winaspi/winaspi16.c b/dlls/winaspi/winaspi16.c index 7bbae1f2c6..d4a3393605 100644 --- a/dlls/winaspi/winaspi16.c +++ b/dlls/winaspi/winaspi16.c @@ -14,7 +14,6 @@ #include "aspi.h" #include "winescsi.h" #include "winaspi.h" -#include "winescsi.h" #include "options.h" #include "heap.h" #include "debugtools.h" diff --git a/graphics/path.c b/graphics/path.c index d875f476cc..3a5ab7940e 100644 --- a/graphics/path.c +++ b/graphics/path.c @@ -67,7 +67,7 @@ DEFAULT_DEBUG_CHANNEL(gdi) #define GROW_FACTOR_DENOM 1 /* Denominator of grow factor */ -static BOOL PATH_PathToRegion(const GdiPath *pPath, INT nPolyFillMode, +static BOOL PATH_PathToRegion(GdiPath *pPath, INT nPolyFillMode, HRGN *pHrgn); static void PATH_EmptyPath(GdiPath *pPath); static BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, @@ -1133,7 +1133,7 @@ static BOOL PATH_FlattenPath(GdiPath *pPath) * error occurs, SetLastError is called with the appropriate value and * FALSE is returned. */ -static BOOL PATH_PathToRegion(const GdiPath *pPath, INT nPolyFillMode, +static BOOL PATH_PathToRegion(GdiPath *pPath, INT nPolyFillMode, HRGN *pHrgn) { int numStrokes, iStroke, i; @@ -1143,7 +1143,7 @@ static BOOL PATH_PathToRegion(const GdiPath *pPath, INT nPolyFillMode, assert(pPath!=NULL); assert(pHrgn!=NULL); - PATH_FlattenPath(pPath); + PATH_FlattenPath(pPath); /* FIXME: What happens when number of points is zero? */ diff --git a/programs/winhelp/macro.yacc.y b/programs/winhelp/macro.yacc.y index ceb125f049..b26eb3b743 100644 --- a/programs/winhelp/macro.yacc.y +++ b/programs/winhelp/macro.yacc.y @@ -5,6 +5,7 @@ * Copyright 1996 Ulrich Schmid */ +#include #include "macro.h" static int skip = 0; -- 2.32.0.93.g670b81a890