summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--handy.h1
-rw-r--r--perl.h16
2 files changed, 17 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index f12263ffd4..1714584d4f 100644
--- a/handy.h
+++ b/handy.h
@@ -2730,6 +2730,7 @@ PoisonWith(0xEF) for catching access to freed memory.
* max(n) * sizeof(t) > MEM_SIZE_MAX
*/
+
# define _MEM_WRAP_NEEDS_RUNTIME_CHECK(n,t) \
( sizeof(MEM_SIZE) < sizeof(n) \
|| sizeof(t) > ((MEM_SIZE)1 << 8*(sizeof(MEM_SIZE) - sizeof(n))))
diff --git a/perl.h b/perl.h
index d77691a4c3..c0440498b2 100644
--- a/perl.h
+++ b/perl.h
@@ -11,6 +11,22 @@
#ifndef H_PERL
#define H_PERL 1
+#if defined(__HP_cc) || defined(__HP_aCC)
+/* The HPUX compiler for Itanium is very picky and warns about
+ * things that gcc doesn't and that we would prefer it does not.
+ * So on that platform silence certain warnings unlaterally. */
+
+/* silence "relational operator ">" always evaluates to 'false'"
+ * warnings. We get a LOT of these from the memwrap checks. */
+#pragma diag_suppress 4276
+
+/* silence "may cause misaligned access" warnings from our "OO in C"
+ * type logic. we do this a lot and if it was broken we would fail tests
+ * all over the place */
+#pragma diag_suppress 4232
+
+#endif /* end HPUX warning disablement */
+
#ifdef PERL_FOR_X2P
/*
* This file is being used for x2p stuff.