Suppressed compiler warning by using the 'unused' attribute.
diff --git a/include/process.h b/include/process.h index f628294..53e1e9a 100644 --- a/include/process.h +++ b/include/process.h
@@ -172,7 +172,7 @@ 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 f7084768..c1e9226 100644 --- a/include/server.h +++ b/include/server.h
@@ -831,13 +831,13 @@ /* 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 a159c55..caa20b8 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h
@@ -135,7 +135,7 @@ #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 @@ #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 3ea1d5e..5b09b59 100644 --- a/include/winnt.h +++ b/include/winnt.h
@@ -514,7 +514,7 @@ 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));