silence a few compiler warnings

This commit is contained in:
Dane Springmeyer 2012-07-23 17:21:29 -07:00
parent 348dfff0c7
commit a1d6579da2
3 changed files with 6 additions and 4 deletions

View file

@ -39,7 +39,6 @@ CURL_LOAD_DATA* grab_http_response(const char* url)
CURL_LOAD_DATA* do_grab(CURL* curl,const char* url)
{
CURLcode res;
CURL_LOAD_DATA* data = (CURL_LOAD_DATA*)malloc(sizeof(CURL_LOAD_DATA));
data->data = NULL;
data->nbytes = 0;
@ -48,7 +47,10 @@ CURL_LOAD_DATA* do_grab(CURL* curl,const char* url)
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, response_callback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, data);
res = curl_easy_perform(curl);
CURLcode res = curl_easy_perform(curl);
if (res !=0) {
std::clog << "error grabbing data\n";
}
return data;
}

View file

@ -112,7 +112,7 @@ feature_ptr postgis_featureset::next()
totalGeomSize_ += size;
int num_attrs = ctx_->size() + 1;
unsigned num_attrs = ctx_->size() + 1;
for (; pos < num_attrs; ++pos)
{
std::string name = rs_->getFieldName(pos);

View file

@ -55,7 +55,7 @@ private:
boost::shared_ptr<IResultSet> rs_;
context_ptr ctx_;
boost::scoped_ptr<mapnik::transcoder> tr_;
int totalGeomSize_;
unsigned totalGeomSize_;
int feature_id_;
bool key_field_;
};