[KMTESTS:RTL]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 13 Nov 2016 12:19:05 +0000 (12:19 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 13 Nov 2016 12:19:05 +0000 (12:19 +0000)
- Silence a GCC5+ warning
CORE-11794

svn path=/trunk/; revision=73224

rostests/kmtests/rtl/RtlMemory.c

index b16e5b7..644180b 100644 (file)
@@ -426,7 +426,14 @@ START_TEST(RtlMemory)
     KeLowerIrql(Irql);
     Status = STATUS_SUCCESS;
     _SEH2_TRY {
+#if defined(__GNUC__) && __GNUC__ >= 5
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmemset-transposed-args"
+#endif
         RtlFillMemory(NULL, 0, 0x55);
+#if defined(__GNUC__) && __GNUC__ >= 5
+#pragma GCC diagnostic pop
+#endif
     } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {
         Status = _SEH2_GetExceptionCode();
     } _SEH2_END;