From 4cd160832016daec6fde20e61fd246ca0e49bcd6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 14 Jun 2018 21:47:25 +0200 Subject: [PATCH] gatchat: Use pragma to mask unknown pragma diagnostic options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gatchat/gatmux.c:33:32: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas] #pragma GCC diagnostic ignored "-Wcast-function-type" ^~~~~~~~~~~~~~~~~~~~~~ --- gatchat/gatmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index 5867b37e..9660006b 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -30,6 +30,7 @@ #include #include +#pragma GCC diagnostic ignored "-Wpragmas" #pragma GCC diagnostic ignored "-Wcast-function-type" #include