[EXT2FS]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 18 Oct 2015 07:32:09 +0000 (07:32 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 18 Oct 2015 07:32:09 +0000 (07:32 +0000)
- Fix warnings

svn path=/trunk/; revision=69586

reactos/drivers/filesystems/ext2/CMakeLists.txt
reactos/drivers/filesystems/ext2/inc/ext2fs.h
reactos/drivers/filesystems/ext2/src/fastio.c
reactos/drivers/filesystems/ext2/src/memory.c

index f02de3c..1be53f0 100644 (file)
@@ -88,7 +88,6 @@ add_library(ext2fs SHARED ${SOURCE} ext2fs.rc)
 if(NOT MSVC)
     add_target_compile_flags(ext2fs "-Wno-pointer-sign -Wno-unused-function")
     if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
-        replace_compile_flags("-Werror" " ")
         add_target_compile_flags(ext2fs "-Wno-unused-but-set-variable -Wno-unused-variable -Wno-missing-braces")
     endif()
 else()
index 3bfb60d..c695df2 100644 (file)
@@ -2030,7 +2030,11 @@ Ext2FastIoUnlockAll (
 BOOLEAN NTAPI
 Ext2FastIoUnlockAllByKey (
     IN PFILE_OBJECT         FileObject,
+#ifdef __REACTOS__
+    IN PVOID                Process,
+#else
     IN PEPROCESS            Process,
+#endif
     IN ULONG                Key,
     OUT PIO_STATUS_BLOCK    IoStatus,
     IN PDEVICE_OBJECT       DeviceObject
index b339a26..7885b08 100644 (file)
@@ -779,7 +779,11 @@ Ext2FastIoUnlockAll (
 BOOLEAN NTAPI
 Ext2FastIoUnlockAllByKey (
     IN PFILE_OBJECT         FileObject,
+#ifdef __REACTOS__
+    IN PVOID                Process,
+#else
     IN PEPROCESS            Process,
+#endif
     IN ULONG                Key,
     OUT PIO_STATUS_BLOCK    IoStatus,
     IN PDEVICE_OBJECT       DeviceObject
index 3d1bc2d..37129c2 100644 (file)
@@ -2077,7 +2077,12 @@ Ext2ParseRegistryVolumeParams(
                             k < ParamPattern[i].Length &&
                             Params->Buffer[j+k] != L';' &&
                             Params->Buffer[j+k] != L',' ) {
+#ifdef __REACTOS__
+                        ParamPattern[i].uValue[k] = Params->Buffer[j + k];
+                        k++;
+#else
                         ParamPattern[i].uValue[k] = Params->Buffer[j + k++];
+#endif
                     }
                     if (k) {
                         NTSTATUS status;