On 9/21/11 10:27 PM, James E Keenan wrote:
commit 55a6542
branch: master
observed on: Linux/i386
perl Configure.pl --cc=g++|--link=g++|--ld=g++|--optimize

g++ build fails very quickly. Here's an edited version of the tail of
the output:


The patch attached enables me to complete 'make' with the configuration options above. Please review.

Thank you very much.
diff --git a/include/parrot/hash.h b/include/parrot/hash.h
index 921b52f..7dc6e2f 100644
--- a/include/parrot/hash.h
+++ b/include/parrot/hash.h
@@ -320,9 +320,7 @@ STRING* Parrot_hash_key_to_string(PARROT_INTERP,
 
 PARROT_WARN_UNUSED_RESULT
 PARROT_PURE_FUNCTION
-size_t Parrot_hash_pointer(
-    ARGIN_NULLOK(const void const *p),
-    size_t hashval);
+size_t Parrot_hash_pointer(ARGIN_NULLOK(const void *p), size_t hashval);
 
 PARROT_CANNOT_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
diff --git a/src/hash.c b/src/hash.c
index fb19084..88adc91 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -233,7 +233,7 @@ Parrot_hash_buffer(ARGIN_NULLOK(const unsigned char *buf), size_t len, size_t ha
 
 /*
 
-=item C<size_t Parrot_hash_pointer(const void const *p, size_t hashval)>
+=item C<size_t Parrot_hash_pointer(const void *p, size_t hashval)>
 
 A (weak) perfect hash over pointers.
 
@@ -244,7 +244,7 @@ A (weak) perfect hash over pointers.
 PARROT_WARN_UNUSED_RESULT
 PARROT_PURE_FUNCTION
 size_t
-Parrot_hash_pointer(ARGIN_NULLOK(const void const *p), size_t hashval)
+Parrot_hash_pointer(ARGIN_NULLOK(const void *p), size_t hashval)
 {
     ASSERT_ARGS(Parrot_hash_pointer)
     size_t x = (size_t)p;
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to