File obit-cflags.patch of Package python3-obit

diff --git configure configure
index 14bbc2c3..b7d70190 100755
--- configure
+++ configure
@@ -2992,7 +2992,6 @@ fi
 
 
 # Checks for programs.
-CFLAGS="-g -O3"
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
diff --git configure.ac configure.ac
index 2e1a983a..7a07d6f6 100644
--- configure.ac
+++ configure.ac
@@ -35,7 +35,6 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 AC_CONFIG_SRCDIR(src/Obit.c)
 
 # Checks for programs.
-CFLAGS="-g -O3"
 AC_PROG_CC
 AC_PROG_RANLIB
 #AM_PATH_PYTHON(2.5)
diff --git src/ObitFile.c src/ObitFile.c
index 54c656e7..67b0fb16 100644
--- src/ObitFile.c
+++ src/ObitFile.c
@@ -1192,7 +1192,7 @@ gboolean ObitFileErrMsg (ObitErr *err)
 
   errMsg = strerror(errno);
 
-  Obit_log_error(err, OBIT_Error, errMsg); /* Set message */
+  Obit_log_error(err, OBIT_Error, "%s", errMsg); /* Set message */
 
   errno = 0;  /* reset errno */
 
diff --git src/ObitIonCal.c src/ObitIonCal.c
index 2b570c85..54a80050 100644
--- src/ObitIonCal.c
+++ src/ObitIonCal.c
@@ -940,13 +940,13 @@ void ObitIonCaldoCal (ObitIonCal*in, ObitErr* err)
   if (prtLv>0) {
     g_snprintf (msgtxt,100,"calibrating ionosphere, max RMS seeing= %6.2f qual=%5d", 
 		MaxRMS, qual);
-    Obit_log_error(err, OBIT_InfoWarn, msgtxt);
+    Obit_log_error(err, OBIT_InfoWarn, "%s", msgtxt);
     
     g_snprintf (msgtxt,100,"observing date = %s", inUV->myDesc->obsdat);
-    Obit_log_error(err, OBIT_InfoWarn, msgtxt);
+    Obit_log_error(err, OBIT_InfoWarn, "%s", msgtxt);
     ObitImageDescGetPoint (myMosaic->images[0]->myDesc, &obsra, &obsdec);
     g_snprintf (msgtxt,100,"pointing ra=%10.6f dec=%10.6f deg", obsra, obsdec);
-    Obit_log_error(err, OBIT_InfoWarn, msgtxt);
+    Obit_log_error(err, OBIT_InfoWarn, "%s", msgtxt);
   }
 
   ObitErrLog(err); /* show any messages on err */
diff --git src/ObitUVGSolve.c src/ObitUVGSolve.c
index cb786dbd..b67b79e7 100644
--- src/ObitUVGSolve.c
+++ src/ObitUVGSolve.c
@@ -1538,7 +1538,7 @@ gainCalc (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL, olong numAnt,
 	ph = 57.296 * atan2 (vobs[k*lenEntry+1], vobs[k*lenEntry]+1.0e-20);
 	g_snprintf (msgtxt,80," %4ld amp =%12.3e phase =%9.2f  %3d  %3d %12.3e", 
 		    k+1, amp, ph, ant1[k], ant2[k], vobs[k*lenEntry+2]);
-	Obit_log_error(err, OBIT_InfoErr, msgtxt);
+	Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
       } 
     } /* end loop  L20:  */;
   } /* end if print */
@@ -1617,7 +1617,7 @@ gainCalc (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL, olong numAnt,
     rms = sqrt (s/sumwt);
     it = 0;
     g_snprintf (msgtxt, 80, "iter= %5ld s=%15.5e rms=%15.5e", it, s, rms);
-    Obit_log_error(err, OBIT_InfoErr, msgtxt);
+    Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
   } /* end print */
  
   /* Begin solution iteration */
@@ -1764,7 +1764,7 @@ gainCalc (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL, olong numAnt,
       } /* end loop  L290: */;
       rms = sqrt (s/sumwt);
       g_snprintf (msgtxt,80,"iter= %5ld s=%15.5e rms=%15.5e", it, s, rms);
-      Obit_log_error(err, OBIT_InfoErr, msgtxt);
+      Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
     } /* end print statistics */ 
 
     if (convgd) break;   /* Converged?  goto L400;*/
@@ -1801,7 +1801,7 @@ gainCalc (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL, olong numAnt,
 	ph = 57.2958 * atan2 (g[i*2+1], g[i*2]);
 	g_snprintf (msgtxt,80,"ant=  %5ld amp=%12.5f phase=%12.2f", 
 		    i+1, amp, ph);
-	Obit_log_error(err, OBIT_InfoErr, msgtxt);
+	Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
       } 
     } /* end loop  L610: */;
   } /* end of print */ 
@@ -1888,7 +1888,7 @@ gainCalcL1 (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL,
       
       g_snprintf (msgtxt,80," %4ld real =%12.5e imag =%12.5e  %3d  %3d %12.5e", 
 		  k+1, vobs[k*lenEntry], vobs[k*lenEntry+1], ant1[k], ant2[k], vobs[k*lenEntry+2]);
-      Obit_log_error(err, OBIT_InfoErr, msgtxt);
+      Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
     } 
     if (vobs[k*lenEntry+2] > 0.0) {
       i = ant1[k]-1;
@@ -1967,7 +1967,7 @@ gainCalcL1 (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL,
       rmean = s / sumwt;
       it = 0;
       g_snprintf (msgtxt,80,"iter= %5d s=%15.5e rmean=%15.5e", it, s, rmean);
-      Obit_log_error(err, OBIT_InfoErr, msgtxt);
+      Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
     } /* end of if print */
 
     /* Inner Solution loop */
@@ -2095,7 +2095,7 @@ gainCalcL1 (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL,
 	} /* end loop  L290: */;
 	rmean = s / sumwt;
 	g_snprintf (msgtxt,80,"iter= %5d s=%15.5e rmean=%15.5e", it, s, rmean);
-	Obit_log_error(err, OBIT_InfoErr, msgtxt);
+	Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
       } /* end print */
 
       /* Inner loop converged? */
@@ -2132,7 +2132,7 @@ gainCalcL1 (ofloat* vobs, olong *ant1, olong *ant2, ollong numBL,
 	ph = 57.2958 * atan2 (g[i*2+1], g[i*2]);
 	g_snprintf (msgtxt,80,"ant=  %5ld amp=%12.5f phase=%12.2f", 
 		    i+1, amp, ph);
-	Obit_log_error(err, OBIT_InfoErr, msgtxt);
+	Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
       } /* end if valid */
     } /* end loop  L610: */;
   } /* end print */
diff --git src/ObitUVSoln.c src/ObitUVSoln.c
index c85ed7e8..adf7c5ab 100644
--- src/ObitUVSoln.c
+++ src/ObitUVSoln.c
@@ -943,7 +943,7 @@ void ObitUVSolnRefAnt (ObitTableSN *SNTab, olong isuba, olong* refant, ObitErr*
 
   /* Message about rereferencing. */
   g_snprintf (msgtxt,80, "Rereferencing phases to antenna %3d", *refant);
-  Obit_log_error(err, OBIT_InfoErr, msgtxt);
+  Obit_log_error(err, OBIT_InfoErr, "%s", msgtxt);
 
   /* Loop through antennas used as  secondary reference antennas. */
   for (ant= 1; ant<=numant; ant++) { /* loop 500 */
diff --git tasks/MapBeam.c tasks/MapBeam.c
index e060e710..6ecca60b 100644
--- tasks/MapBeam.c
+++ tasks/MapBeam.c
@@ -982,7 +982,7 @@ ObitImage* setOutput (gchar *Source, olong iStoke, olong ant,
     /* Something in source name? */
     if ((Source[0]==' ') || (Source[0]==0)) 
       g_snprintf (stemp, 30, "Beam");
-    else g_snprintf (stemp, 30, Source);
+    else g_snprintf (stemp, 30, "%s", Source);
     ObitTrimTrail(stemp);  /* remove trailing blanks */
 	   
     IOType = OBIT_IO_FITS;  /* Save file type */
diff --git tasks/MapBeam2.c tasks/MapBeam2.c
index 1bc6013e..adc6ce16 100644
--- tasks/MapBeam2.c
+++ tasks/MapBeam2.c
@@ -981,7 +981,7 @@ ObitImage* setOutput (gchar *Source, olong iStoke, olong ant,
     /* Something in source name? */
     if ((Source[0]==' ') || (Source[0]==0)) 
       g_snprintf (stemp, 30, "Beam");
-    else g_snprintf (stemp, 30, Source);
+    else g_snprintf (stemp, 30, "%s", Source);
     ObitTrimTrail(stemp);  /* remove trailing blanks */
 	   
     IOType = OBIT_IO_FITS;  /* Save file type */
openSUSE Build Service is sponsored by