[ADVAPI32_APITEST][NTDLL_APITEST][WINDOWSCODECS] Comment out some unused functions...
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 7 Dec 2017 23:22:05 +0000 (00:22 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 7 Dec 2017 23:22:05 +0000 (00:22 +0100)
dll/win32/windowscodecs/bitmap.c
dll/win32/windowscodecs/converter.c
modules/rostests/apitests/advapi32/ServiceArgs.c
modules/rostests/apitests/ntdll/NtLoadUnloadKey.c

index 843c7e7..3d5a2bb 100644 (file)
@@ -63,10 +63,13 @@ static inline BitmapImpl *impl_from_IMILUnknown1(IMILUnknown1 *iface)
     return CONTAINING_RECORD(iface, BitmapImpl, IMILUnknown1_iface);
 }
 
+#ifndef __REACTOS__
+/* This is currently unused */
 static inline BitmapImpl *impl_from_IMILUnknown2(IMILUnknown2 *iface)
 {
     return CONTAINING_RECORD(iface, BitmapImpl, IMILUnknown2_iface);
 }
+#endif
 
 static inline BitmapLockImpl *impl_from_IWICBitmapLock(IWICBitmapLock *iface)
 {
index 2309875..3fca5b3 100644 (file)
@@ -71,11 +71,13 @@ typedef struct FormatConverter {
 } FormatConverter;
 
 /* https://www.w3.org/Graphics/Color/srgb */
+#ifndef __REACTOS__
 static inline float from_sRGB_component(float f)
 {
     if (f <= 0.04045f) return f / 12.92f;
     return powf((f + 0.055f) / 1.055f, 2.4f);
 }
+#endif
 
 static inline float to_sRGB_component(float f)
 {
index 38d19aa..16d675a 100644 (file)
@@ -32,6 +32,7 @@ static void send_msg(const char *type, const char *msg)
     WriteFile(pipe_handle, buf, strlen(buf)+1, &written, NULL);
 }
 
+#if 0
 static inline void service_trace(const char *msg, ...)
 {
     va_list valist;
@@ -43,6 +44,7 @@ static inline void service_trace(const char *msg, ...)
 
     send_msg("TRACE", buf);
 }
+#endif
 
 static void service_ok(int cnd, const char *msg, ...)
 {
index f9bb9c2..ac4ec34 100644 (file)
@@ -397,7 +397,7 @@ START_TEST(NtLoadUnloadKey)
     {
         PCWSTR HiveName;
         PCWSTR RegMountPoint;
-    } HIVE_LIST_ENTRY, *PHIVE_LIST_ENTRY;
+    } HIVE_LIST_ENTRY;
 
     static const HIVE_LIST_ENTRY RegistryHives[] =
     {