Skip to content
Snippets Groups Projects
Commit c786cb7c authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Eliminating some warnings

parent 2eb9ae6c
No related branches found
No related tags found
No related merge requests found
......@@ -457,7 +457,7 @@ public:
{
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;
}
......
......@@ -21,7 +21,7 @@
* \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 f2(file2);
......@@ -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;
......@@ -159,7 +159,7 @@ struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::d
* \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())
{return (0 == fullString.compare (fullString.length() - ending.length(), ending.length(), ending));}
......
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