From 03250ff6e7894a43e494732b8f1405fe2a5038fe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 1 Sep 2004 04:55:52 +0000 Subject: [PATCH] Inline functions don't need WINE_UNUSED. --- dlls/gdi/gdi_private.h | 2 +- dlls/gdi/path.c | 2 +- dlls/msvcrt/main.c | 2 +- dlls/ole32/compobj_private.h | 2 -- include/stackframe.h | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dlls/gdi/gdi_private.h b/dlls/gdi/gdi_private.h index f5e60aa5d8c..ba120f45f85 100644 --- a/dlls/gdi/gdi_private.h +++ b/dlls/gdi/gdi_private.h @@ -273,7 +273,7 @@ typedef struct tagDC * transformation process is done in floating point internally. This function * is then used to round these coordinates to integer values. */ -static inline INT WINE_UNUSED GDI_ROUND(FLOAT val) +static inline INT GDI_ROUND(FLOAT val) { return (int)floor(val + 0.5); } diff --git a/dlls/gdi/path.c b/dlls/gdi/path.c index b19ec710843..4c469d1a799 100644 --- a/dlls/gdi/path.c +++ b/dlls/gdi/path.c @@ -106,7 +106,7 @@ static BOOL PATH_CheckCorners(DC *dc, POINT corners[], INT x1, INT y1, INT x2, I /* Performs a world-to-viewport transformation on the specified point (which * is in floating point format). */ -static inline void WINE_UNUSED INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point) +static inline void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point) { FLOAT x, y; diff --git a/dlls/msvcrt/main.c b/dlls/msvcrt/main.c index 61411bf6146..083f0f82cf5 100644 --- a/dlls/msvcrt/main.c +++ b/dlls/msvcrt/main.c @@ -28,7 +28,7 @@ DWORD msvcrt_tls_index; static inline BOOL msvcrt_init_tls(void); static inline BOOL msvcrt_free_tls(void); -const char* msvcrt_get_reason(DWORD reason) WINE_UNUSED; +const char* msvcrt_get_reason(DWORD reason); /********************************************************************* * Init diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index ee4e33b4c58..32d17727435 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -171,13 +171,11 @@ HRESULT WINAPI __CLSIDFromStringA(LPCSTR idstr, CLSID *id); * Per-thread values are stored in the TEB on offset 0xF80, * see http://www.microsoft.com/msj/1099/bugslayer/bugslayer1099.htm */ -static inline APARTMENT* COM_CurrentInfo(void) WINE_UNUSED; static inline APARTMENT* COM_CurrentInfo(void) { APARTMENT* apt = NtCurrentTeb()->ReservedForOle; return apt; } -static inline APARTMENT* COM_CurrentApt(void) WINE_UNUSED; static inline APARTMENT* COM_CurrentApt(void) { APARTMENT* apt = COM_CurrentInfo(); diff --git a/include/stackframe.h b/include/stackframe.h index 94428b5f9d5..bce4d6bf602 100644 --- a/include/stackframe.h +++ b/include/stackframe.h @@ -74,7 +74,7 @@ typedef struct _STACK16FRAME /* Push bytes on the 16-bit stack of a thread; * return a segptr to the first pushed byte */ -static inline SEGPTR WINE_UNUSED stack16_push( int size ) +static inline SEGPTR stack16_push( int size ) { STACK16FRAME *frame = CURRENT_STACK16; memmove( (char*)frame - size, frame, sizeof(*frame) ); @@ -83,7 +83,7 @@ static inline SEGPTR WINE_UNUSED stack16_push( int size ) } /* Pop bytes from the 16-bit stack of a thread */ -static inline void WINE_UNUSED stack16_pop( int size ) +static inline void stack16_pop( int size ) { STACK16FRAME *frame = CURRENT_STACK16; memmove( (char*)frame + size, frame, sizeof(*frame) ); -- 2.11.4.GIT