Skip to content
Snippets Groups Projects
Commit 6df85dd5 authored by Petr Zejdl's avatar Petr Zejdl
Browse files

Fix minor compiler warnings

parent 4414f6be
No related branches found
No related tags found
1 merge request!59CMSSW json file
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include "controls.h" #include "controls.h"
size_t dummy(char *data, size_t n, size_t l, void *s) { size_t dummy(char *data, size_t n, size_t l, void *s) {
(void)(data); // TODO: Unused variable
(void)(s); // TODO: Unused variable
// std::cout << data << std::endl; // std::cout << data << std::endl;
return n*l; } return n*l; }
...@@ -97,7 +99,7 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data ...@@ -97,7 +99,7 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
uint32_t bx=*p++; uint32_t bx=*p++;
uint32_t orbit=*p++; uint32_t orbit=*p++;
for(unsigned int i = 0; i < mAcount; i++){ for(/*unsigned*/ int i = 0; i < mAcount; i++){
uint32_t mf = *p++; uint32_t mf = *p++;
uint32_t ms = *p++; uint32_t ms = *p++;
uint32_t ipt = (mf >> shifts::pt) & masks::pt; uint32_t ipt = (mf >> shifts::pt) & masks::pt;
...@@ -117,6 +119,12 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data ...@@ -117,6 +119,12 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
uint32_t ieta = (ms >> shifts::eta) & masks::etav; uint32_t ieta = (ms >> shifts::eta) & masks::etav;
if(((mf >> shifts::eta) & masks::etas)!=0) ieta -= 512; if(((mf >> shifts::eta) & masks::etas)!=0) ieta -= 512;
float eta = ieta*gmt_scales::eta_scale; float eta = ieta*gmt_scales::eta_scale;
(void)(iso); // TODO: Unused variable
(void)(chrgv); // TODO: Unused variable
(void)(mBcount); // TODO: Unused variable
(void)(index); // TODO: Unused variable
particle_data << "{\"index\" : {}}\n" particle_data << "{\"index\" : {}}\n"
<< "{\"orbit\": " << orbit << ',' << "{\"orbit\": " << orbit << ','
<< "\"bx\": " << bx << ',' << "\"bx\": " << bx << ','
...@@ -147,6 +155,9 @@ void* ElasticProcessor::operator()( void* item ){ ...@@ -147,6 +155,9 @@ void* ElasticProcessor::operator()( void* item ){
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE,particle_data.str().length()); curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE,particle_data.str().length());
curl_easy_setopt(handle, CURLOPT_COPYPOSTFIELDS, particle_data.str().c_str()); /* data goes here */ curl_easy_setopt(handle, CURLOPT_COPYPOSTFIELDS, particle_data.str().c_str()); /* data goes here */
int res = curl_easy_perform(handle); int res = curl_easy_perform(handle);
(void)(res); // TODO: Unused variable
} }
if(!control->running && !c_request_url.empty()){ if(!control->running && !c_request_url.empty()){
c_request_url.clear(); c_request_url.clear();
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#include <iostream> #include <iostream>
StreamProcessor::StreamProcessor(size_t max_size_) : StreamProcessor::StreamProcessor(size_t max_size_) :
max_size(max_size_),
tbb::filter(parallel), tbb::filter(parallel),
max_size(max_size_),
nbPackets(0) nbPackets(0)
{ fprintf(stderr,"Created transform filter at 0x%llx \n",(unsigned long long)this);} { fprintf(stderr,"Created transform filter at 0x%llx \n",(unsigned long long)this);}
StreamProcessor::~StreamProcessor(){ StreamProcessor::~StreamProcessor(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment