diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-26 02:26:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-26 21:30:53 +0200 |
| commit | 2bec3708fc744c18128c5bdb4c2a332f5c8eb283 (patch) | |
| tree | e46632701e9b4201fbfd799070b37aade0ccf457 | |
| parent | ce624e59b9dee93195d2582f7264ab398ed0d99b (diff) | |
Ignore libxml++ warnings in a nicer way.
| -rw-r--r-- | src/lib/analytics.cc | 3 | ||||
| -rw-r--r-- | src/lib/atmos_content.cc | 3 | ||||
| -rw-r--r-- | src/lib/audio_analysis.cc | 3 | ||||
| -rw-r--r-- | src/lib/audio_mapping.cc | 7 | ||||
| -rw-r--r-- | src/lib/audio_point.cc | 3 | ||||
| -rw-r--r-- | src/lib/colour_conversion.cc | 3 | ||||
| -rw-r--r-- | src/lib/cross_common.cc | 3 | ||||
| -rw-r--r-- | src/lib/dcp_text_track.h | 3 | ||||
| -rw-r--r-- | src/lib/dcp_video.cc | 3 | ||||
| -rw-r--r-- | src/lib/dkdm_wrapper.cc | 3 | ||||
| -rw-r--r-- | src/lib/edid.cc | 3 | ||||
| -rw-r--r-- | src/lib/encode_server.cc | 3 | ||||
| -rw-r--r-- | src/lib/ffmpeg_audio_stream.cc | 3 | ||||
| -rw-r--r-- | src/lib/ffmpeg_image_proxy.cc | 3 | ||||
| -rw-r--r-- | src/lib/ffmpeg_stream.cc | 3 | ||||
| -rw-r--r-- | src/lib/ffmpeg_subtitle_stream.cc | 3 | ||||
| -rw-r--r-- | src/lib/font.cc | 3 | ||||
| -rw-r--r-- | src/lib/isdcf_metadata.cc | 3 | ||||
| -rw-r--r-- | src/lib/j2k_image_proxy.cc | 3 | ||||
| -rw-r--r-- | src/lib/kdm_recipient.h | 3 | ||||
| -rw-r--r-- | src/lib/raw_image_proxy.cc | 3 | ||||
| -rw-r--r-- | src/lib/rgba.cc | 3 | ||||
| -rw-r--r-- | src/lib/spl.cc | 5 | ||||
| -rw-r--r-- | src/lib/spl_entry.cc | 3 | ||||
| -rw-r--r-- | src/lib/subtitle_analysis.cc | 3 | ||||
| -rw-r--r-- | src/lib/types.cc | 3 | ||||
| -rw-r--r-- | test/stream_test.cc | 11 |
27 files changed, 88 insertions, 7 deletions
diff --git a/src/lib/analytics.cc b/src/lib/analytics.cc index 34f67116e..f20b213e4 100644 --- a/src/lib/analytics.cc +++ b/src/lib/analytics.cc @@ -21,9 +21,12 @@ #include "analytics.h" #include "exceptions.h" #include "compose.hpp" +#include "warnings.h" #include <dcp/raw_convert.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> diff --git a/src/lib/atmos_content.cc b/src/lib/atmos_content.cc index 2e59b92b7..0543437a3 100644 --- a/src/lib/atmos_content.cc +++ b/src/lib/atmos_content.cc @@ -20,8 +20,11 @@ #include "atmos_content.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS using std::string; diff --git a/src/lib/audio_analysis.cc b/src/lib/audio_analysis.cc index 446fcccef..f69bcd362 100644 --- a/src/lib/audio_analysis.cc +++ b/src/lib/audio_analysis.cc @@ -23,8 +23,11 @@ #include "util.h" #include "playlist.h" #include "audio_content.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <stdint.h> diff --git a/src/lib/audio_mapping.cc b/src/lib/audio_mapping.cc index 05dfb7e89..94efbe49b 100644 --- a/src/lib/audio_mapping.cc +++ b/src/lib/audio_mapping.cc @@ -19,12 +19,15 @@ */ #include "audio_mapping.h" -#include "util.h" -#include "digester.h" #include "audio_processor.h" +#include "digester.h" +#include "util.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/regex.hpp> #include <iostream> diff --git a/src/lib/audio_point.cc b/src/lib/audio_point.cc index b5ea2c31e..722673b96 100644 --- a/src/lib/audio_point.cc +++ b/src/lib/audio_point.cc @@ -19,8 +19,11 @@ */ #include "audio_point.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS using std::string; using dcp::raw_convert; diff --git a/src/lib/colour_conversion.cc b/src/lib/colour_conversion.cc index 2e052060e..22404c279 100644 --- a/src/lib/colour_conversion.cc +++ b/src/lib/colour_conversion.cc @@ -22,6 +22,7 @@ #include "colour_conversion.h" #include "util.h" #include "digester.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <dcp/chromaticity.h> #include <dcp/gamma_transfer_function.h> @@ -29,7 +30,9 @@ #include <dcp/identity_transfer_function.h> #include <dcp/s_gamut3_transfer_function.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/foreach.hpp> #include <iostream> diff --git a/src/lib/cross_common.cc b/src/lib/cross_common.cc index cf220fe53..edc806b58 100644 --- a/src/lib/cross_common.cc +++ b/src/lib/cross_common.cc @@ -21,9 +21,12 @@ #include "cross.h" #include "compose.hpp" #include "dcpomatic_log.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <boost/foreach.hpp> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <iostream> #include "i18n.h" diff --git a/src/lib/dcp_text_track.h b/src/lib/dcp_text_track.h index 913e77fa5..e6a146b3b 100644 --- a/src/lib/dcp_text_track.h +++ b/src/lib/dcp_text_track.h @@ -21,8 +21,11 @@ #ifndef DCPOMATIC_DCP_TEXT_TRACK_H #define DCPOMATIC_DCP_TEXT_TRACK_H +#include "warnings.h" #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS class DCPTextTrack { diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc index 7b06f8cfc..d6b9d4f27 100644 --- a/src/lib/dcp_video.cc +++ b/src/lib/dcp_video.cc @@ -39,12 +39,15 @@ #include "cross.h" #include "player_video.h" #include "compose.hpp" +#include "warnings.h" #include <libcxml/cxml.h> #include <dcp/raw_convert.h> #include <dcp/openjpeg_image.h> #include <dcp/rgb_xyz.h> #include <dcp/j2k.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/asio.hpp> #include <boost/thread.hpp> #include <stdint.h> diff --git a/src/lib/dkdm_wrapper.cc b/src/lib/dkdm_wrapper.cc index 0dd37b464..6638bc315 100644 --- a/src/lib/dkdm_wrapper.cc +++ b/src/lib/dkdm_wrapper.cc @@ -21,7 +21,10 @@ #include "compose.hpp" #include "dkdm_wrapper.h" #include "dcpomatic_assert.h" +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/foreach.hpp> using std::string; diff --git a/src/lib/edid.cc b/src/lib/edid.cc index 3df65d325..a530b8e38 100644 --- a/src/lib/edid.cc +++ b/src/lib/edid.cc @@ -20,8 +20,11 @@ #include "compose.hpp" #include "edid.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <iostream> diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc index c242cb216..61e0b09c5 100644 --- a/src/lib/encode_server.cc +++ b/src/lib/encode_server.cc @@ -36,9 +36,12 @@ #include "dcpomatic_log.h" #include "encoded_log_entry.h" #include "version.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/algorithm/string.hpp> #include <boost/scoped_array.hpp> #include <boost/foreach.hpp> diff --git a/src/lib/ffmpeg_audio_stream.cc b/src/lib/ffmpeg_audio_stream.cc index 1fc008d51..32828f13a 100644 --- a/src/lib/ffmpeg_audio_stream.cc +++ b/src/lib/ffmpeg_audio_stream.cc @@ -20,7 +20,10 @@ #include "ffmpeg_audio_stream.h" #include <dcp/raw_convert.h> +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <libcxml/cxml.h> using std::string; diff --git a/src/lib/ffmpeg_image_proxy.cc b/src/lib/ffmpeg_image_proxy.cc index db6059266..b54e29d44 100644 --- a/src/lib/ffmpeg_image_proxy.cc +++ b/src/lib/ffmpeg_image_proxy.cc @@ -25,12 +25,15 @@ #include "image.h" #include "compose.hpp" #include "util.h" +#include "warnings.h" #include <dcp/raw_convert.h> extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> } +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <iostream> #include "i18n.h" diff --git a/src/lib/ffmpeg_stream.cc b/src/lib/ffmpeg_stream.cc index 86108ce4d..60327ab0d 100644 --- a/src/lib/ffmpeg_stream.cc +++ b/src/lib/ffmpeg_stream.cc @@ -20,8 +20,11 @@ #include "ffmpeg_stream.h" #include "dcpomatic_assert.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS extern "C" { #include <libavformat/avformat.h> } diff --git a/src/lib/ffmpeg_subtitle_stream.cc b/src/lib/ffmpeg_subtitle_stream.cc index da8bafc0a..72698fa51 100644 --- a/src/lib/ffmpeg_subtitle_stream.cc +++ b/src/lib/ffmpeg_subtitle_stream.cc @@ -19,8 +19,11 @@ */ #include "ffmpeg_subtitle_stream.h" +#include "warnings.h" #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/foreach.hpp> #include <iostream> diff --git a/src/lib/font.cc b/src/lib/font.cc index 019c9ab07..a52957376 100644 --- a/src/lib/font.cc +++ b/src/lib/font.cc @@ -20,7 +20,10 @@ #include "font.h" #include "dcpomatic_assert.h" +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/foreach.hpp> using std::string; diff --git a/src/lib/isdcf_metadata.cc b/src/lib/isdcf_metadata.cc index c333325a1..f4b256626 100644 --- a/src/lib/isdcf_metadata.cc +++ b/src/lib/isdcf_metadata.cc @@ -19,9 +19,12 @@ */ #include "isdcf_metadata.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <iostream> #include "i18n.h" diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc index acf8bb052..08ebc343c 100644 --- a/src/lib/j2k_image_proxy.cc +++ b/src/lib/j2k_image_proxy.cc @@ -22,6 +22,7 @@ #include "dcpomatic_socket.h" #include "image.h" #include "dcpomatic_assert.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <dcp/openjpeg_image.h> #include <dcp/mono_picture_frame.h> @@ -30,7 +31,9 @@ #include <dcp/rgb_xyz.h> #include <dcp/j2k.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <iostream> #include "i18n.h" diff --git a/src/lib/kdm_recipient.h b/src/lib/kdm_recipient.h index b68b4b7c7..e92fc3c48 100644 --- a/src/lib/kdm_recipient.h +++ b/src/lib/kdm_recipient.h @@ -21,9 +21,12 @@ #ifndef DCPOMATIC_KDM_RECIPIENT_H #define DCPOMATIC_KDM_RECIPIENT_H +#include "warnings.h" #include <dcp/certificate.h> #include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/optional.hpp> #include <string> diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc index 2509bd0d4..09902c3a2 100644 --- a/src/lib/raw_image_proxy.cc +++ b/src/lib/raw_image_proxy.cc @@ -20,13 +20,16 @@ #include "raw_image_proxy.h" #include "image.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <dcp/util.h> #include <libcxml/cxml.h> extern "C" { #include <libavutil/pixfmt.h> } +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include "i18n.h" diff --git a/src/lib/rgba.cc b/src/lib/rgba.cc index 6d58d97d1..1076af433 100644 --- a/src/lib/rgba.cc +++ b/src/lib/rgba.cc @@ -19,7 +19,10 @@ */ #include "rgba.h" +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/lexical_cast.hpp> using std::string; diff --git a/src/lib/spl.cc b/src/lib/spl.cc index ccf809f8b..7692df0ca 100644 --- a/src/lib/spl.cc +++ b/src/lib/spl.cc @@ -18,11 +18,14 @@ */ -#include "spl.h" #include "content_store.h" +#include "spl.h" +#include "warnings.h" #include <libcxml/cxml.h> #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <boost/foreach.hpp> #include <iostream> diff --git a/src/lib/spl_entry.cc b/src/lib/spl_entry.cc index 5b011a046..3cb1a9a36 100644 --- a/src/lib/spl_entry.cc +++ b/src/lib/spl_entry.cc @@ -21,7 +21,10 @@ #include "spl_entry.h" #include "dcp_content.h" #include "dcpomatic_assert.h" +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS using boost::shared_ptr; using boost::dynamic_pointer_cast; diff --git a/src/lib/subtitle_analysis.cc b/src/lib/subtitle_analysis.cc index f8254f00d..e6e8f310f 100644 --- a/src/lib/subtitle_analysis.cc +++ b/src/lib/subtitle_analysis.cc @@ -20,9 +20,12 @@ #include "subtitle_analysis.h" #include "exceptions.h" +#include "warnings.h" #include <libcxml/cxml.h> #include <dcp/raw_convert.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS using std::string; using dcp::raw_convert; diff --git a/src/lib/types.cc b/src/lib/types.cc index d2df7f1a8..df57f2d47 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -21,12 +21,15 @@ #include "types.h" #include "compose.hpp" #include "dcpomatic_assert.h" +#include "warnings.h" #include <dcp/raw_convert.h> #include <dcp/cpl.h> #include <dcp/dcp.h> #include <dcp/reel_mxf.h> #include <dcp/reel_asset.h> +DCPOMATIC_DISABLE_WARNINGS #include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS #include <libcxml/cxml.h> #include <boost/foreach.hpp> diff --git a/test/stream_test.cc b/test/stream_test.cc index 1e1462464..b4b7c260b 100644 --- a/test/stream_test.cc +++ b/test/stream_test.cc @@ -22,12 +22,15 @@ * @brief Some simple tests of FFmpegAudioStream. */ -#include <boost/test/unit_test.hpp> -#include <libxml++/libxml++.h> -#include <libcxml/cxml.h> +#include "lib/film.h" #include "lib/ffmpeg_content.h" #include "lib/ffmpeg_audio_stream.h" -#include "lib/film.h" +#include "lib/warnings.h" +#include <libcxml/cxml.h> +DCPOMATIC_DISABLE_WARNINGS +#include <libxml++/libxml++.h> +DCPOMATIC_ENABLE_WARNINGS +#include <boost/test/unit_test.hpp> using std::pair; using std::list; |
