diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-22 23:27:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-22 23:27:15 +0200 |
| commit | 3c29aa6531a4046a8db72dcac81189eb8893233c (patch) | |
| tree | ce2a134dab63df1711a135ae5732839ff293d958 /src/lib/warnings.h | |
| parent | 92364afecf76a87e1f96980cb1b91cf6f6a7522c (diff) | |
Use libdcp's warnings.h
Diffstat (limited to 'src/lib/warnings.h')
| -rw-r--r-- | src/lib/warnings.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/lib/warnings.h b/src/lib/warnings.h deleted file mode 100644 index ca8a9ab5e..000000000 --- a/src/lib/warnings.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - Copyright (C) 2020 Carl Hetherington <cth@carlh.net> - - This file is part of DCP-o-matic. - - DCP-o-matic is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - DCP-o-matic is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. - -*/ - -#if __GNUC__ >= 9 -#define DCPOMATIC_DISABLE_WARNINGS \ - _Pragma("GCC diagnostic push") \ - _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \ - _Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \ - _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \ - _Pragma("GCC diagnostic ignored \"-Waddress\"") \ - _Pragma("GCC diagnostic ignored \"-Wparentheses\"") \ - _Pragma("GCC diagnostic ignored \"-Wdeprecated-copy\"") \ - _Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") -#else -#define DCPOMATIC_DISABLE_WARNINGS \ - _Pragma("GCC diagnostic push") \ - _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \ - _Pragma("GCC diagnostic ignored \"-Wmissing-field-initializers\"") \ - _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \ - _Pragma("GCC diagnostic ignored \"-Waddress\"") \ - _Pragma("GCC diagnostic ignored \"-Wparentheses\"") \ - _Pragma("GCC diagnostic ignored \"-Wsuggest-override\"") -#endif - -#define DCPOMATIC_ENABLE_WARNINGS \ - _Pragma("GCC diagnostic pop") |
