From a58d386628891bbee9ac153bf69fa19e2227e4a5 Mon Sep 17 00:00:00 2001 From: short <> Date: Sat, 11 Jan 2003 18:06:14 +0000 Subject: [PATCH] Functions marked as G_GNUC_UNUSED to prevent 'unused' warnings --- include/ddk/rtl.h | 21 +++++++++++++++++++++ include/napi/teb.h | 3 +++ ntoskrnl/include/internal/i386/ps.h | 3 +++ 3 files changed, 27 insertions(+) diff --git a/include/ddk/rtl.h b/include/ddk/rtl.h index 3144ac2..521340f 100644 --- a/include/ddk/rtl.h +++ b/include/ddk/rtl.h @@ -236,6 +236,9 @@ extern BOOLEAN NLS_MB_OEM_CODE_PAGE_TAG; } \ } */ +#ifdef G_GNUC_UNUSED +static inline PSINGLE_LIST_ENTRY PopEntryList(PSINGLE_LIST_ENTRY ListHead) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PSINGLE_LIST_ENTRY @@ -265,6 +268,9 @@ PushEntryList ( (Entry)->Next = (ListHead)->Next; \ (ListHead)->Next = (Entry) */ +#ifdef G_GNUC_UNUSED +static inline VOID PushEntryList(PSINGLE_LIST_ENTRY ListHead,PSINGLE_LIST_ENTRY Entry) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline VOID @@ -281,6 +287,9 @@ PushEntryList ( /* * An ReactOS extension */ +#ifdef G_GNUC_UNUSED +static inline PSINGLE_LIST_ENTRY PopEntrySList(PSLIST_HEADER ListHead) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PSINGLE_LIST_ENTRY @@ -304,6 +313,9 @@ PSINGLE_LIST_ENTRY /* * An ReactOS extension */ +#ifdef G_GNUC_UNUSED +static inline VOID PushEntrySList(PSLIST_HEADER ListHead,PSINGLE_LIST_ENTRY Entry) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline VOID @@ -376,6 +388,9 @@ RemoveHeadList ( ); */ +#ifdef G_GNUC_UNUSED +static inline PLIST_ENTRY RemoveHeadList(PLIST_ENTRY ListHead) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PLIST_ENTRY @@ -430,6 +445,9 @@ RemoveTailList ( ); */ +#ifdef G_GNUC_UNUSED +static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY ListHead) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PLIST_ENTRY @@ -1100,6 +1118,9 @@ RtlInitUnicodeStringFromLiteral ( /* Prevent hide of the inappropriate passed type by our * de"const" of the string in the macro below. */ +#ifdef G_GNUC_UNUSED +static inline const WCHAR *_RtlInitUnicodeStringFromLiteral_typecheck(const WCHAR *s) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline const WCHAR *_RtlInitUnicodeStringFromLiteral_typecheck(const WCHAR *s) { return s; } #define RtlInitUnicodeStringFromLiteral(__PDEST_STRING__,__SOURCE_STRING__) \ diff --git a/include/napi/teb.h b/include/napi/teb.h index 05962c2..db4516d 100644 --- a/include/napi/teb.h +++ b/include/napi/teb.h @@ -216,6 +216,9 @@ typedef struct _TEB #define NtCurrentPeb() (NtCurrentTeb()->Peb) +#ifdef G_GNUC_UNUSED +static inline PTEB NtCurrentTeb(VOID) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PTEB NtCurrentTeb(VOID) { int x; diff --git a/ntoskrnl/include/internal/i386/ps.h b/ntoskrnl/include/internal/i386/ps.h index f7eac43..6bb6d99 100644 --- a/ntoskrnl/include/internal/i386/ps.h +++ b/ntoskrnl/include/internal/i386/ps.h @@ -65,6 +65,9 @@ typedef struct _KPCR struct _KTHREAD* CurrentThread; /* 124 */ } __attribute__((packed)) KPCR, *PKPCR; +#ifdef G_GNUC_UNUSED +static inline PKPCR KeGetCurrentKPCR(VOID) G_GNUC_UNUSED; +#endif /* G_GNUC_UNUSED */ static inline PKPCR KeGetCurrentKPCR(VOID) { ULONG value; -- 1.8.3.1