This patch fixes some warnings in global_setup.c and embed.c. All it does is add some necessary includes to pick up function declarations and constify a variable to avoid warnings about casting from const to non-const, so it should be pretty safe to apply.

-garrett

Index: src/embed.c
===================================================================
RCS file: /cvs/public/parrot/src/embed.c,v
retrieving revision 1.124
diff -u -r1.124 embed.c
--- src/embed.c 2 Dec 2004 10:48:18 -0000       1.124
+++ src/embed.c 4 Dec 2004 02:51:14 -0000
@@ -208,7 +208,7 @@
 #ifdef PARROT_HAS_HEADER_SYSMMAN
     int fd = -1;
 #endif
-    char *fullname;
+    const char *fullname;

     if (filename == NULL || strcmp(filename, "-") == 0) {
         /* read from STDIN */
Index: src/global_setup.c
===================================================================
RCS file: /cvs/public/parrot/src/global_setup.c,v
retrieving revision 1.54
diff -u -r1.54 global_setup.c
--- src/global_setup.c  4 Nov 2004 18:46:10 -0000       1.54
+++ src/global_setup.c  4 Dec 2004 02:51:14 -0000
@@ -24,6 +24,10 @@
 #define INSIDE_GLOBAL_SETUP
 #include "parrot/parrot.h"

+#include "../encodings/fixed_8.h"
+#include "../charset/ascii.h"
+#include "../charset/binary.h"
+
 /* These functions are defined in the auto-generated file core_pmcs.c */
 extern void Parrot_initialize_core_pmcs(Interp *interp);
 extern void Parrot_register_core_pmcs(Interp *interp, PMC *registry);

Reply via email to