[cig-commits] r20493 - seismo/2D/SPECFEM2D/trunk/src/specfem2D

dkomati1 at geodynamics.org dkomati1 at geodynamics.org
Sat Jul 7 10:32:12 PDT 2012


Author: dkomati1
Date: 2012-07-07 10:32:12 -0700 (Sat, 07 Jul 2012)
New Revision: 20493

Modified:
   seismo/2D/SPECFEM2D/trunk/src/specfem2D/attenuation_compute_param.c
Log:
fixed "ignoring return value of ?\226?\128?\152system?\226?\128?\153" warning


Modified: seismo/2D/SPECFEM2D/trunk/src/specfem2D/attenuation_compute_param.c
===================================================================
--- seismo/2D/SPECFEM2D/trunk/src/specfem2D/attenuation_compute_param.c	2012-07-07 16:53:21 UTC (rev 20492)
+++ seismo/2D/SPECFEM2D/trunk/src/specfem2D/attenuation_compute_param.c	2012-07-07 17:32:12 UTC (rev 20493)
@@ -212,14 +212,16 @@
 /* DK DK call xmgr to plot curves if needed */
 
 if (xmgr == 1) {
+  int ierr;
+
   sprintf(strng, "xmgr -nxy Q%1d", pid);
-  system(strng);
+  ierr = system(strng);
   sprintf(strng, "xmgr -nxy modulus%1d", pid);
-  system(strng);
+  ierr = system(strng);
   sprintf(strng, "rm modulus%1d", pid);
-  system(strng);
+  ierr = system(strng);
   sprintf(strng, "rm Q%1d", pid);
-  system(strng);
+  ierr = system(strng);
 }
 
 }



More information about the CIG-COMMITS mailing list