suppress gcc Wunused-but-set-variable warnings

This commit is contained in:
Dane Springmeyer 2012-07-24 14:35:19 -07:00
parent 4288cad41e
commit 881ff0180a

View file

@ -26,6 +26,9 @@
// mapnik // mapnik
#include <mapnik/grid/grid.hpp> #include <mapnik/grid/grid.hpp>
// boost
#include <boost/concept_check.hpp>
namespace mapnik { namespace mapnik {
/* /*
@ -57,6 +60,8 @@ static inline void scale_grid(mapnik::grid::data_type & target,
unsigned yprt1 = 0; unsigned yprt1 = 0;
unsigned xprt = 0; unsigned xprt = 0;
unsigned xprt1 = 0; unsigned xprt1 = 0;
boost::ignore_unused_variable_warning(yprt1);
boost::ignore_unused_variable_warning(xprt1);
//no scaling or subpixel offset //no scaling or subpixel offset
if (target_height == source_height && target_width == source_width && offs_x == 0 && offs_y == 0){ if (target_height == source_height && target_width == source_width && offs_x == 0 && offs_y == 0){