suppress gcc Wunused-but-set-variable warnings
This commit is contained in:
parent
4288cad41e
commit
881ff0180a
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,9 @@
|
|||
// mapnik
|
||||
#include <mapnik/grid/grid.hpp>
|
||||
|
||||
// boost
|
||||
#include <boost/concept_check.hpp>
|
||||
|
||||
namespace mapnik {
|
||||
|
||||
/*
|
||||
|
@ -57,6 +60,8 @@ static inline void scale_grid(mapnik::grid::data_type & target,
|
|||
unsigned yprt1 = 0;
|
||||
unsigned xprt = 0;
|
||||
unsigned xprt1 = 0;
|
||||
boost::ignore_unused_variable_warning(yprt1);
|
||||
boost::ignore_unused_variable_warning(xprt1);
|
||||
|
||||
//no scaling or subpixel offset
|
||||
if (target_height == source_height && target_width == source_width && offs_x == 0 && offs_y == 0){
|
||||
|
|
Loading…
Reference in a new issue