Commit 9ba6ca39 authored by Olivier Lagrasse's avatar Olivier Lagrasse

- Suppression d'une grande partie des warnings a la compilation.

parent 0f36eb57
......@@ -384,7 +384,7 @@ public:
* \brief Only use in graphic interface.
* \param string The string to be displayed.
*/
void selection_information(const std::string string) const{
void selection_information(const std::string /*string*/) const{
}
......
......@@ -281,7 +281,7 @@ void Interface_graphic::change_zoom_box_value(int new_value){
int index;
if (-2147483648 == new_value)/* prevent overflow value */
if ((int)-2147483648 == new_value)/* prevent overflow value */
new_value = 2147483647;
int_to_string << new_value;
......
......@@ -37,7 +37,7 @@ public:
* \fn const int get_size_loaded() const = 0;
* \return the size already loaded of the file by the parser
*/
virtual const int get_size_loaded() const = 0;
virtual int get_size_loaded() const = 0;
......
......@@ -71,6 +71,6 @@ void ParserPaje::set_file_to_parse(const string filename){
}
const int ParserPaje::get_size_loaded() const{
int ParserPaje::get_size_loaded() const{
return (TokenSource::get_size_loaded());
}
......@@ -55,7 +55,7 @@ public:
* \brief return the size of the file already read.
* \return the size already loaded of the file by the parser
*/
const int get_size_loaded() const;
int get_size_loaded() const;
};
......
......@@ -200,7 +200,7 @@ std::string *TokenSource::read_token() {
return &_token;
}
const int TokenSource::get_size_loaded() {
int TokenSource::get_size_loaded() {
#ifdef WIN32
if (_file == NULL)
......@@ -215,6 +215,6 @@ const int TokenSource::get_size_loaded() {
return _file.tellg();
#else
//std::cerr<<(int)((_cursor*100.0)/_filesize)<<"%"<<endl;
return (_cursor*100.0)/_filesize;
return (_cursor*100.0)/_filesize;
#endif
}
......@@ -106,7 +106,7 @@ public:
* \brief get the size already parsed.
* \return the size already parsed
*/
static const int get_size_loaded();
static int get_size_loaded();
};
......
......@@ -371,7 +371,7 @@ public:
const Link *link;
const Event *event;
const State *state;
const Variable *variable;
/* const Variable *variable;*/
// find container needs to know the position of each container
double yr = y;
const list<Container *> *root_containers = trace->get_root_containers();
......@@ -390,7 +390,7 @@ public:
// First we browse to find a communication
while (ancestor) {
if (link = get_link(ancestor, x, y, d)) {
if ( (link = get_link(ancestor, x, y, d)) ) {
*Message::get_instance() << "Link: " << link->get_value()->get_name().to_string() << Message::endi;
return;
}
......@@ -484,7 +484,7 @@ public:
x2 = link->get_end_time().get_value();
y1 = ((double)_container_positions[link->get_source()]+0.5)*(_container_height+_container_v_space);
y2 = ((double)_container_positions[link->get_destination()]+0.5)*(_container_height+_container_v_space);
if (x1-d <= x && x <= x2+d || x2-d <= x && x <= x1+d) { // Test the interval
if ( ( (x1-d <= x) && (x <= x2+d) ) || ( (x2-d <= x) && (x <= x1+d) ) ) { // Test the interval
a = y1 - y2;
b = x2 - x1;
c = -(a*x1 + b*x2);
......
......@@ -192,7 +192,7 @@ void Trace::start_link(Date &time, LinkType *type, Container *ancestor, Containe
delete_opt(opt);
}
void Trace::end_link(Date &time, LinkType *type, Container *ancestor, Container *destination, EntityValue *value, String key, map<std::string, Value *> &opt) {
void Trace::end_link(Date &time, LinkType *type, Container *ancestor, Container *destination, EntityValue */*value*/, String key, map<std::string, Value *> &opt) {
if (ancestor && type && destination)
ancestor->end_link(time, destination, key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment