From 3b8a72422842ef643aae69843110beb55e97715c Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sat, 24 Jul 1999 12:08:20 +0000 Subject: [PATCH] Suppressed compiler warning by using the 'unused' attribute. --- include/process.h | 2 +- include/server.h | 4 ++-- include/wine/exception.h | 4 ++-- include/winnt.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/process.h b/include/process.h index f6282941a4c..53e1e9af269 100644 --- a/include/process.h +++ b/include/process.h @@ -172,7 +172,7 @@ extern DWORD DEBUG_SendCreateThreadEvent( void *entry ); extern DWORD DEBUG_SendLoadDLLEvent( HFILE file, HMODULE module, LPSTR name ); extern DWORD DEBUG_SendUnloadDLLEvent( HMODULE module ); -static inline PDB *PROCESS_Current(void) +static inline PDB * WINE_UNUSED PROCESS_Current(void) { return NtCurrentTeb()->process; } diff --git a/include/server.h b/include/server.h index f7084768188..c1e922689ab 100644 --- a/include/server.h +++ b/include/server.h @@ -831,13 +831,13 @@ enum request /* client communication functions */ /* get a pointer to the request buffer */ -static inline void *get_req_buffer(void) +static inline void * WINE_UNUSED get_req_buffer(void) { return NtCurrentTeb()->buffer; } /* maximum remaining size in the server buffer */ -static inline int server_remaining( const void *ptr ) +static inline int WINE_UNUSED server_remaining( const void *ptr ) { return (char *)NtCurrentTeb()->buffer + NtCurrentTeb()->buffer_size - (char *)ptr; } diff --git a/include/wine/exception.h b/include/wine/exception.h index a159c558e54..caa20b83d49 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h @@ -135,7 +135,7 @@ extern DWORD WINAPI WINE_finally_handler( PEXCEPTION_RECORD record, EXCEPTION_FR #endif /* USE_COMPILER_EXCEPTIONS */ -static inline EXCEPTION_FRAME *EXC_push_frame( EXCEPTION_FRAME *frame ) +static inline EXCEPTION_FRAME * WINE_UNUSED EXC_push_frame( EXCEPTION_FRAME *frame ) { #if defined(__GNUC__) && defined(__i386__) EXCEPTION_FRAME *prev; @@ -152,7 +152,7 @@ static inline EXCEPTION_FRAME *EXC_push_frame( EXCEPTION_FRAME *frame ) #endif } -static inline EXCEPTION_FRAME *EXC_pop_frame( EXCEPTION_FRAME *frame ) +static inline EXCEPTION_FRAME * WINE_UNUSED EXC_pop_frame( EXCEPTION_FRAME *frame ) { #if defined(__GNUC__) && defined(__i386__) __asm__ __volatile__(".byte 0x64\n\tmovl %0,(0)" diff --git a/include/winnt.h b/include/winnt.h index 3ea1d5e4604..5b09b59564e 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -514,7 +514,7 @@ WINAPI SetUnhandledExceptionFilter( LPTOP_LEVEL_EXCEPTION_FILTER filter ); struct _TEB; #if defined(__i386__) && defined(__WINE__) -static inline struct _TEB *__get_teb(void) +static inline struct _TEB * WINE_UNUSED __get_teb(void) { struct _TEB *teb; __asm__(".byte 0x64\n\tmovl (0x18),%0" : "=r" (teb));