# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1382176325 -32400
# Node ID 3bb852ee20a7cae881dc0c4efdf3d1511daeec73
# Parent  2b72c62f545044b70c61e4c59a5285010154d591
gcc 4.6 doesn't support -Wmost

diff --git a/c-sdk/config/Rhapsody.mk b/c-sdk/config/Rhapsody.mk
--- a/c-sdk/config/Rhapsody.mk
+++ b/c-sdk/config/Rhapsody.mk
@@ -69,17 +69,17 @@
 # The meaning of a common is ambiguous.  It may be a true definition:
 #     int x = 0;
 # or it may be a declaration of a symbol defined in another file:
 #     extern int x;
 # Use the -fno-common option to force all commons to become true
 # definitions so that the linker can catch multiply-defined symbols.
 # Also, common symbols are not allowed with Rhapsody dynamic libraries.
 
-OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wmost -fno-common -pipe -DRHAPSODY -DHAVE_STRERROR -DHAVE_BSD_FLOCK
+OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-parentheses -fno-common -pipe -DRHAPSODY -DHAVE_STRERROR -DHAVE_BSD_FLOCK
 
 ARCH			= rhapsody
 
 # May override this with -bundle to create a loadable module.
 DSO_LDOPTS		= -dynamiclib -compatibility_version 1 -current_version 1 -all_load
 
 MKSHLIB			= $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS)
 DLL_SUFFIX		= dylib
diff --git a/c-sdk/configure b/c-sdk/configure
--- a/c-sdk/configure
+++ b/c-sdk/configure
@@ -4116,17 +4116,17 @@
     cat >> confdefs.h <<\EOF
 #define DARWIN 1
 EOF
 
     cat >> confdefs.h <<\EOF
 #define HAVE_BSD_FLOCK 1
 EOF
 
-    CFLAGS="$CFLAGS -Wmost -fno-common"
+    CFLAGS="$CFLAGS -Wall -Wno-parentheses -fno-common"
     case "${target_cpu}" in
         i*86*)
             cat >> confdefs.h <<\EOF
 #define i386 1
 EOF
 
             CPU_ARCH=i386
             ;;
diff --git a/c-sdk/configure.in b/c-sdk/configure.in
--- a/c-sdk/configure.in
+++ b/c-sdk/configure.in
@@ -1101,17 +1101,17 @@
     esac
 
     ;;
 
 *-darwin*)
     AC_DEFINE(XP_UNIX)
     AC_DEFINE(DARWIN)
     AC_DEFINE(HAVE_BSD_FLOCK)
-    CFLAGS="$CFLAGS -Wmost -fno-common"
+    CFLAGS="$CFLAGS -Wall -Wno-parentheses -fno-common"
     case "${target_cpu}" in
         i*86*)
             AC_DEFINE(i386)
             CPU_ARCH=i386
             ;;
         *)
             AC_DEFINE(ppc)
             CPU_ARCH=ppc
