https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4cd7b3a3df41e1d5fda7296b53e62db44d03a9a4

commit 4cd7b3a3df41e1d5fda7296b53e62db44d03a9a4
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sat Jun 6 18:42:47 2020 +0200
Commit:     GitHub <[email protected]>
CommitDate: Sat Jun 6 18:42:47 2020 +0200

    [HHPCOMP] Fix 2 MSVC C4101 warnings (#2392)
    
    "...\chmc\chmc.c(671): warning C4101: 'code': unreferenced local variable"
    "...\chmc\chmc.c(671): warning C4101: 'len': unreferenced local variable"
---
 sdk/tools/hhpcomp/CMakeLists.txt | 3 ---
 sdk/tools/hhpcomp/chmc/chmc.c    | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/sdk/tools/hhpcomp/CMakeLists.txt b/sdk/tools/hhpcomp/CMakeLists.txt
index 50fd03c94ef..a3f7e9d749a 100644
--- a/sdk/tools/hhpcomp/CMakeLists.txt
+++ b/sdk/tools/hhpcomp/CMakeLists.txt
@@ -16,9 +16,6 @@ add_executable(hhpcomp ${SOURCE})
 target_link_libraries(hhpcomp)
 
 if(MSVC)
-    # Disable warning "'x': unreferenced local variable"
-    target_compile_options(hhpcomp PRIVATE "/wd4101")
-
     # Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
     target_compile_options(hhpcomp PRIVATE "/wd4244")
 endif()
diff --git a/sdk/tools/hhpcomp/chmc/chmc.c b/sdk/tools/hhpcomp/chmc/chmc.c
index f96ff11673e..9c0e0217d80 100644
--- a/sdk/tools/hhpcomp/chmc/chmc.c
+++ b/sdk/tools/hhpcomp/chmc/chmc.c
@@ -668,7 +668,9 @@ int chmc_system_done(struct chmcFile *chm)
        sysp = malloc(16384);
        if (sysp) {
                UInt32 val;
+#ifndef __REACTOS__
                UInt16 code, len;
+#endif
                const char *entry_val;
 
                p = chmc_syscat_mem(sysp, &system->version, 
sizeof(system->version));

Reply via email to