[svn:parrot] r45174 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Thu Mar 25 07:04:26 UTC 2010


Author: chromatic
Date: Thu Mar 25 07:04:19 2010
New Revision: 45174
URL: https://trac.parrot.org/parrot/changeset/45174

Log:
[src] Fixed a compilation warning about an unused return value in
Parrot_compile_string().

Modified:
   trunk/src/embed.c

Modified: trunk/src/embed.c
==============================================================================
--- trunk/src/embed.c	Thu Mar 25 04:52:40 2010	(r45173)
+++ trunk/src/embed.c	Thu Mar 25 07:04:19 2010	(r45174)
@@ -1105,7 +1105,8 @@
 
     if (!interp->initial_pf) {
         /* SIDE EFFECT: PackFile_new_dummy sets interp->initial_pf */
-        PackFile_new_dummy(interp, Parrot_str_new_constant(interp, "compile_string"));
+        interp->initial_pf = PackFile_new_dummy(interp,
+            Parrot_str_new_constant(interp, "compile_string"));
         /* Assumption: there is no valid reason to fail to create it.
          * If the assumption changes, replace the assertion with a
          * runtime check */


More information about the parrot-commits mailing list