Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / external / liborcus / gcc9.patch.0
blobda404038e68eec7204b5184dba765b51471aa795
1 --- include/orcus/types.hpp
2 +++ include/orcus/types.hpp
3 @@ -8,6 +8,14 @@
4  #ifndef INCLUDED_ORCUS_TYPES_HPP
5  #define INCLUDED_ORCUS_TYPES_HPP
7 +#ifdef __GNUC__
8 +#pragma GCC diagnostic push
9 +#pragma GCC diagnostic ignored "-Wpragmas" // for old GCC
10 +#pragma GCC diagnostic ignored "-Wunknown-warning-option" // for Clang
11 +#pragma GCC diagnostic ignored "-Wdeprecated-copy"
12 +#pragma GCC diagnostic ignored "-Wshadow"
13 +#endif
15  #include <cstdint>
16  #include <cstdlib>
17  #include <vector>
18 @@ -629,5 +637,9 @@ ORCUS_PSR_DLLPUBLIC extern const xml_token_t XML_UNKNOWN_TOKEN;
20  }
22 +#ifdef __GNUC__
23 +#pragma GCC diagnostic pop
24 +#endif
26  #endif
27  /* vim:set shiftwidth=4 softtabstop=4 expandtab: */