silence a few compiler warnings
This commit is contained in:
parent
348dfff0c7
commit
a1d6579da2
3 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue