mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
fix -Wshadow warnings caught by g++-5
This commit is contained in:
parent
e580d0b1d6
commit
3741a7f348
@ -47,9 +47,9 @@ struct MAPNIK_DECL image_view_any : image_view_base
|
||||
image_view_any() = default;
|
||||
|
||||
template <typename T>
|
||||
image_view_any(T && data)
|
||||
image_view_any(T && _data)
|
||||
noexcept(std::is_nothrow_constructible<image_view_base, T && >::value)
|
||||
: image_view_base(std::forward<T>(data)) {}
|
||||
: image_view_base(std::forward<T>(_data)) {}
|
||||
|
||||
std::size_t width() const;
|
||||
std::size_t height() const;
|
||||
|
||||
@ -28,7 +28,8 @@
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wredeclared-class-member"
|
||||
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
|
||||
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
|
||||
#pragma GCC diagnostic ignored "-Wunused-local-typedefs" // gcc5
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
#pragma GCC diagnostic ignored "-Wc++11-narrowing"
|
||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user