summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2005-05-30 12:15:56 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-05-30 10:19:09 +0000
commit3c0f78ca4f737d7b40beecbfdca31b9f7e3fb952 (patch)
tree0c5cc6b5b5d5060f76ddafe25f0051d2ff6c4b9e /embed.pl
parent4ab2a30b7819ac6edb69c69e044edaf44dd8119f (diff)
downloadperl-3c0f78ca4f737d7b40beecbfdca31b9f7e3fb952.tar.gz
Re: updated tru64 cc [PATCH]es (Re: [PATCH]es: Tru64/blead)
Message-ID: <429AAF9C.30503@gmail.com> p4raw-id: //depot/perl@24627
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/embed.pl b/embed.pl
index c917dfba09..27815ae9cd 100755
--- a/embed.pl
+++ b/embed.pl
@@ -794,10 +794,27 @@ EXTCONST void * const PL_force_link_funcs[] = {
#define PERLVARIC(v,t,i) PERLVAR(v,t)
#define PERLVARISC(v,i) PERLVAR(v,char)
+/* In Tru64 (__DEC && __osf__) the cc option -std1 causes that one
+ * cannot cast between void pointers and function pointers without
+ * info level warnings. The PL_force_link_funcs[] would cause a few
+ * hundred of those warnings. In code one can circumnavigate this by using
+ * unions that overlay the different pointers, but in declarations one
+ * cannot use this trick. Therefore we just disable the warning here
+ * for the duration of the PL_force_link_funcs[] declaration. */
+
+#if defined(__DECC) && defined(__osf__)
+#pragma message save
+#pragma message disable (nonstandcast)
+#endif
+
#include "thrdvar.h"
#include "intrpvar.h"
#include "perlvars.h"
+#if defined(__DECC) && defined(__osf__)
+#pragma message restore
+#endif
+
#undef PERLVAR
#undef PERLVARA
#undef PERLVARI