From dfb4a411d40f60c15aab5aec4414e723f06c87d6 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 21 Feb 2019 14:01:42 +0100 Subject: [PATCH] Silenced unused-const-variables for test cases. --- libfreerdp/codec/test/TestFreeRDPCodecClear.c | 3 +++ libfreerdp/common/test/TestCommonAssistance.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libfreerdp/codec/test/TestFreeRDPCodecClear.c b/libfreerdp/codec/test/TestFreeRDPCodecClear.c index bccec0cb5..6ff0466cb 100644 --- a/libfreerdp/codec/test/TestFreeRDPCodecClear.c +++ b/libfreerdp/codec/test/TestFreeRDPCodecClear.c @@ -3,11 +3,14 @@ #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-const-variable" /* [MS-RDPEGFX] 4.1.1.1 Example 1 */ static const BYTE PREPARE_CLEAR_EXAMPLE_1[] = "\x03\xc3\x11\x00"; static const BYTE TEST_CLEAR_EXAMPLE_1[] = "\x03\xc3\x11\x00"; +#pragma GCC diagnostic pop /* [MS-RDPEGFX] 4.1.1.1 Example 2 */ static const BYTE TEST_CLEAR_EXAMPLE_2[] = diff --git a/libfreerdp/common/test/TestCommonAssistance.c b/libfreerdp/common/test/TestCommonAssistance.c index 48f6feab7..c52130ea5 100644 --- a/libfreerdp/common/test/TestCommonAssistance.c +++ b/libfreerdp/common/test/TestCommonAssistance.c @@ -21,9 +21,12 @@ static const char TEST_MSRC_INCIDENT_FILE_TYPE1[] = "L=\"0\" />" ""; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-const-variable" static const BYTE TEST_MSRC_INCIDENT_EXPERT_BLOB_TYPE1[32] = "\x3C\x9C\xAE\x0B\xCE\x7A\xB1\x5C\x8A\xAC\x01\xD6\x76\x04\x5E\xDF" "\x3F\xFA\xF0\x92\xE2\xDE\x36\x8A\x20\x17\xE6\x8A\x0D\xED\x7C\x90"; +#pragma GCC diagnostic pop static const char TEST_MSRC_INCIDENT_PASSWORD_TYPE2[] = "48BJQ853X3B4";