]> git.mxchange.org Git - simgear.git/blobdiff - simgear/magvar/testmagvar.cxx
Fix #1783: repeated error message on console
[simgear.git] / simgear / magvar / testmagvar.cxx
index f3ce3e1cc2e9d7f1bdb420ea9180b84ef90f0466..3e63b413961f06b020816024e62109cf7775b040 100644 (file)
@@ -1,8 +1,8 @@
 /* 2/14/00 fixed help message- dip angle (down positive), variation (E positive) */
 
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <cmath>
 
 #include <simgear/constants.h>
 
@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
   /* output N, E, down components of B (nTesla)
      dip angle (down positive), variation (E positive) */
 double lat_deg,lon_deg,h,var;
-int model,yy,mm,dd;
+int /* model,*/yy,mm,dd;
 double field[6];
 
 if ((argc != 8) && (argc !=7)) {
@@ -36,9 +36,9 @@ mm=     (int)strtol(argv[4],NULL,10);
 dd=     (int)strtol(argv[5],NULL,10);
 yy=     (int)strtol(argv[6],NULL,10);
 if (argc == 8){
-  model=  (int)strtol(argv[7],NULL,10);
+//  model=  (int)strtol(argv[7],NULL,10);
 }else{
-  model=7;
+//  model=7;
 }