diff options
author | Justin Luth <jluth@mail.com> | 2023-07-10 07:53:23 -0400 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-10 15:55:11 +0200 |
commit | 6ed4c4a1b008e7bd4917d9cca255c862fbcd08aa (patch) | |
tree | f5e36f1978da03bff4aefaee99793a405f0db245 | |
parent | 88d72b44a1a9345e7eacdd707cecfb300517df9c (diff) |
fix build: SkiaHelper.cxx missed W on -Wunused-parameter
The error message was
vcl/skia/SkiaHelper.cxx:75:32: error: ‘-unused-parameter’
is not an option that controls warnings [-Werror=pragmas]
75 | #pragma GCC diagnostic ignored "-unused-parameter"
This fixes commit f8c15850dbfaa46605e1e353ae1f49e69184e8a1
for gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Change-Id: Iae927e6c794e09cdab2d0fbd30a84a631800c9a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154247
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | vcl/skia/SkiaHelper.cxx | 2 | ||||
-rw-r--r-- | vcl/skia/x11/textrender.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/skia/SkiaHelper.cxx b/vcl/skia/SkiaHelper.cxx index ec668315ef62..a8332cfe7e1d 100644 --- a/vcl/skia/SkiaHelper.cxx +++ b/vcl/skia/SkiaHelper.cxx @@ -72,7 +72,7 @@ bool isVCLSkiaEnabled() { return false; } #endif #if defined __GNUC__ && !defined __clang__ #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-unused-parameter" +#pragma GCC diagnostic ignored "-Wunused-parameter" #endif #include <src/image/SkImage_Base.h> #if defined __GNUC__ && !defined __clang__ diff --git a/vcl/skia/x11/textrender.cxx b/vcl/skia/x11/textrender.cxx index 81d6efa670c9..c0bbb102f5d8 100644 --- a/vcl/skia/x11/textrender.cxx +++ b/vcl/skia/x11/textrender.cxx @@ -25,7 +25,7 @@ #endif #if defined __GNUC__ && !defined __clang__ #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-unused-value" +#pragma GCC diagnostic ignored "-Wunused-value" #endif #include <skia/x11/textrender.hxx> |