Suppressed compiler warning by using the 'unused' attribute.

This commit is contained in:
Lionel Ulmer 1999-07-24 12:08:20 +00:00 committed by Alexandre Julliard
parent 95049edd94
commit 3b8a724228
4 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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)"

View File

@ -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));