Functions marked as G_GNUC_UNUSED to prevent 'unused' warnings
authorshort <>
Sat, 11 Jan 2003 18:06:14 +0000 (18:06 +0000)
committershort <>
Sat, 11 Jan 2003 18:06:14 +0000 (18:06 +0000)
include/ddk/rtl.h
include/napi/teb.h
ntoskrnl/include/internal/i386/ps.h

index 3144ac2..521340f 100644 (file)
@@ -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__) \
index 05962c2..db4516d 100644 (file)
@@ -216,6 +216,9 @@ typedef struct _TEB
 \r
 #define NtCurrentPeb() (NtCurrentTeb()->Peb)\r
 \r
+#ifdef G_GNUC_UNUSED\r
+static inline PTEB NtCurrentTeb(VOID) G_GNUC_UNUSED;\r
+#endif /* G_GNUC_UNUSED */\r
 static inline PTEB NtCurrentTeb(VOID)\r
 {\r
    int x;\r
index f7eac43..6bb6d99 100644 (file)
@@ -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;