From 4bbb85313ce46fc2e8daaee889680843fb98f798 Mon Sep 17 00:00:00 2001 From: "briano%netscape.com" Date: Sun, 15 Nov 1998 08:46:54 +0000 Subject: [PATCH] Fix to shut up the compilers on OSF/1. git-svn-id: svn://10.0.0.236/trunk@14705 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/lib/libi18n/cns2b5.c | 4 ++++ mozilla/lib/libi18n/katakana.c | 4 ++++ mozilla/lib/libmocha/lm_hardw.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mozilla/lib/libi18n/cns2b5.c b/mozilla/lib/libi18n/cns2b5.c index d17ca6c18fd..fb91a5464be 100644 --- a/mozilla/lib/libi18n/cns2b5.c +++ b/mozilla/lib/libi18n/cns2b5.c @@ -20,4 +20,8 @@ #ifdef FEATURE_BIG5CNS #include "cns2b5.i00" +#else +#ifdef OSF1 +static int dumbcc = 0; /* The 3.2 compiler aborts when there's "nothing to compile", and 4.0 warns. This fixes both problems. */ +#endif #endif diff --git a/mozilla/lib/libi18n/katakana.c b/mozilla/lib/libi18n/katakana.c index 7294beb7abc..500b74edb62 100644 --- a/mozilla/lib/libi18n/katakana.c +++ b/mozilla/lib/libi18n/katakana.c @@ -149,4 +149,8 @@ MODULE_PRIVATE XP_Bool INTL_GetSendHankakuKana() return send_hankaku_kana; } +#else +#ifdef OSF1 +static int dumbcc = 0; /* The 3.2 compiler aborts when there's "nothing to compile", and 4.0 warns. This fixes both problems. */ +#endif #endif /* MOZ_MAIL_NEWS */ diff --git a/mozilla/lib/libmocha/lm_hardw.c b/mozilla/lib/libmocha/lm_hardw.c index 7551692e1c9..a2b883a89d3 100644 --- a/mozilla/lib/libmocha/lm_hardw.c +++ b/mozilla/lib/libmocha/lm_hardw.c @@ -152,4 +152,8 @@ lm_DefineHardware(MochaDecoder *decoder, JSObject *parent) decoder->hardware = obj; return obj; } +#else +#ifdef OSF1 +static int dumbcc = 0; /* The 3.2 compiler aborts when there's "nothing to compile", and 4.0 warns. This fixes both problems. */ +#endif #endif