Fixed some compile warnings

release/4.3a0
Richard Roberts 2010-11-19 20:36:13 +00:00
parent 2fc5ab3bdb
commit 83f3e14261
3 changed files with 1 additions and 15 deletions

View File

@ -30,7 +30,7 @@ void TestResult::testsStarted ()
void TestResult::addFailure (const Failure& failure) void TestResult::addFailure (const Failure& failure)
{ {
if (failure.lineNumber < 0) // allow for no line number if (failure.lineNumber < 0) // allow for no line number
fprintf (stdout, "%s%s%s%s%ld%s%s\n", fprintf (stdout, "%s%s%s%s\n",
"Failure: \"", "Failure: \"",
failure.message.asCharString (), failure.message.asCharString (),
"\" in ", "\" in ",

View File

@ -48,7 +48,6 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// check NaN in the input matrix // check NaN in the input matrix
void CheckNaN(int m, int n, double *A, const char* msg) { void CheckNaN(int m, int n, double *A, const char* msg) {
bool hasNaN = false;
for(int i=0; i<m; i++) { for(int i=0; i<m; i++) {
for(int j=0; j<n; j++) for(int j=0; j<n; j++)
if (isnan(A[j*m+i])) if (isnan(A[j*m+i]))
@ -59,7 +58,6 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// check Inf in the input matrix // check Inf in the input matrix
void CheckInf(int m, int n, double *A, const char* msg) { void CheckInf(int m, int n, double *A, const char* msg) {
bool hasNaN = false;
for(int i=0; i<m; i++) { for(int i=0; i<m; i++) {
for(int j=0; j<n; j++) for(int j=0; j<n; j++)
if (isinf(A[j*m+i])) if (isinf(A[j*m+i]))
@ -70,7 +68,6 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// remove NaN in the input matrix // remove NaN in the input matrix
void RemoveNaN(int m, int n, double *A) { void RemoveNaN(int m, int n, double *A) {
bool hasNaN = false;
for(int i=0; i<m; i++) { for(int i=0; i<m; i++) {
for(int j=0; j<n; j++) for(int j=0; j<n; j++)
if (isnan(A[j*m+i])) if (isnan(A[j*m+i]))
@ -81,7 +78,6 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// check NaN in the input matrix // check NaN in the input matrix
bool HasNaN(int m, int n, double *A) { bool HasNaN(int m, int n, double *A) {
bool hasNaN = false;
for(int i=0; i<m; i++) { for(int i=0; i<m; i++) {
for(int j=0; j<n; j++) for(int j=0; j<n; j++)
if (isnan(A[j*m+i])) if (isnan(A[j*m+i]))
@ -93,7 +89,6 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// check Inf in the input matrix // check Inf in the input matrix
bool HasInf(int m, int n, double *A) { bool HasInf(int m, int n, double *A) {
bool hasNaN = false;
for(int i=0; i<m; i++) { for(int i=0; i<m; i++) {
for(int j=0; j<n; j++) for(int j=0; j<n; j++)
if (isinf(A[j*m+i])) if (isinf(A[j*m+i]))

View File

@ -30,15 +30,6 @@ namespace gtsam {
using namespace std; using namespace std;
using namespace tensors; using namespace tensors;
static Eta3 eta;
static Index<3, 'a'> a, _a;
static Index<3, 'b'> b, _b;
static Index<3, 'c'> c, _c;
static Index<3, 'd'> d, _d;
static Index<3, 'd'> e, _e;
static Index<3, 'f'> f, _f;
static Index<3, 'g'> g, _g;
/* ************************************************************************* */ /* ************************************************************************* */
Point2h point2h(double x, double y, double w) { Point2h point2h(double x, double y, double w) {
double data[3]; double data[3];