Skip to content

Commit

Permalink
fix linux warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmohamed committed Oct 28, 2024
1 parent 6d6c573 commit dd8a8e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: NetPathMiner
Version: 1.41.2
Version: 1.41.3
Date: 2014 onwards
Title: NetPathMiner for Biological Network Construction, Path Mining
and Visualization
Expand Down
6 changes: 3 additions & 3 deletions src/sbml_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ SEXP readsbmlfile(SEXP FILENAME, SEXP ATTR_TERMS, SEXP VERBOSE) {
message<<"line "<< err->getLine() <<": "<< err->getShortMessage() << "\n";
if(err->getErrorId() == NotSchemaConformant ){
if(verbose) Rprintf(": Error.\n");
Rf_warningcall(mkChar(filename), message.str().c_str());
Rf_warningcall(mkChar(filename), "%s", message.str().c_str());
return(R_NilValue);
}
}//loop over errors.
Rf_warningcall(mkChar(filename), message.str().c_str());
Rf_warningcall(mkChar(filename), "%s", message.str().c_str());
}


Expand Down Expand Up @@ -366,7 +366,7 @@ SEXP readsbml_sign(SEXP FILENAME, SEXP ATTR_TERMS, SEXP VERBOSE){
fatal=true; break;
}
}//loop over errors.
Rf_warningcall(mkChar(filename), message.str().c_str());
Rf_warningcall(mkChar(filename), "%s", message.str().c_str());
}
if(fatal) continue;

Expand Down

0 comments on commit dd8a8e6

Please sign in to comment.