Skip to content
Snippets Groups Projects
Commit d4b4060d authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix build failure with -Werror=format-security

parent 82d3c76e
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ void SylvException::printMessage() const ...@@ -26,7 +26,7 @@ void SylvException::printMessage() const
char mes[1500]; char mes[1500];
mes[0] = '\0'; mes[0] = '\0';
printMessage(mes, 1499); printMessage(mes, 1499);
printf(mes); puts(mes);
} }
int SylvException::printMessage(char* str, int maxlen) const int SylvException::printMessage(char* str, int maxlen) const
......
...@@ -113,14 +113,14 @@ InitializeKalmanFilter::setPstar(Matrix &Pstar, Matrix &Pinf, const Matrix &T, c ...@@ -113,14 +113,14 @@ InitializeKalmanFilter::setPstar(Matrix &Pstar, Matrix &Pinf, const Matrix &T, c
{ {
if (e.info > 0) // The matrix is not positive definite in NormCholesky calculator if (e.info > 0) // The matrix is not positive definite in NormCholesky calculator
{ {
printf(e.message.c_str()); puts(e.message.c_str());
info = -1; //likelihood = penalty; info = -1; //likelihood = penalty;
return; return;
} }
else if (e.info < 0) else if (e.info < 0)
{ {
printf("Caugth unhandled TS exception with Pstar matrix: "); printf("Caugth unhandled TS exception with Pstar matrix: ");
printf(e.message.c_str()); puts(e.message.c_str());
info = -1; //likelihood = penalty; info = -1; //likelihood = penalty;
throw; throw;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment