Commit c786cb7c authored by Pietro Incardona's avatar Pietro Incardona

Eliminating some warnings

parent 2eb9ae6c
...@@ -457,7 +457,7 @@ public: ...@@ -457,7 +457,7 @@ public:
{ {
if (y.size() == 0) if (y.size() == 0)
{ {
std::cerr << "Error: " << __FILE__ << ":" << __LINE__ << " vector y must be filled"; std::cerr << "Error: " << __FILE__ << ":" << __LINE__ << " vector y must be filled\n";
return; return;
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* \return true if they match * \return true if they match
* *
*/ */
bool compare(std::string file1, std::string file2) static inline bool compare(std::string file1, std::string file2)
{ {
boost::iostreams::mapped_file_source f1(file1); boost::iostreams::mapped_file_source f1(file1);
boost::iostreams::mapped_file_source f2(file2); boost::iostreams::mapped_file_source f2(file2);
...@@ -65,7 +65,7 @@ struct RGB ...@@ -65,7 +65,7 @@ struct RGB
* *
*/ */
struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::default_random_engine & g) static inline struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::default_random_engine & g)
{ {
struct RGB col; struct RGB col;
...@@ -159,7 +159,7 @@ struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::d ...@@ -159,7 +159,7 @@ struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::d
* \param ending ending string to check * \param ending ending string to check
* *
*/ */
bool hasEnding (std::string const &fullString, std::string const &ending) static inline bool hasEnding (std::string const &fullString, std::string const &ending)
{ {
if (fullString.length() >= ending.length()) if (fullString.length() >= ending.length())
{return (0 == fullString.compare (fullString.length() - ending.length(), ending.length(), ending));} {return (0 == fullString.compare (fullString.length() - ending.length(), ending.length(), ending));}
......
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