From 0975d66d2f06603f5e4016440b333aac88e2958a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 24 Sep 2008 03:22:58 +0000 Subject: Ok, now all the warnings are gone (except for those coming from nids, but that's ok, nids is still in flux, they'll be gone soon). --- src/tests/formula.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tests/formula.cpp') diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp index 635d73f..429c306 100644 --- a/src/tests/formula.cpp +++ b/src/tests/formula.cpp @@ -9,10 +9,17 @@ int main( int argc, char *argv[] ) { + if( argc < 2 ) + { + printf("usage: %s \n", argv[0] ); + return -1; + } Bu::Formula uForm; Bu::Formula dForm; printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) ); printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) ); + + return 0; } -- cgit v1.2.3