Changeset 142


Ignore:
Timestamp:
Sep 4, 2010, 1:24:50 AM (15 years ago)
Author:
dmik
Message:

jdk/make: Warnings options for C and C++ differ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/openjdk/jdk/make/common/Defs-os2.gmk

    r133 r142  
    114114
    115115# We compile a lot of MSVC code which seems to silently tolerate this
    116 GCC_WARNINGS += -Wno-sign-compare -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
     116GCC_WARNINGS += -Wno-sign-compare
     117GCC_WARNINGS_C += -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
     118GCC_WARNINGS_CXX += -Wno-write-strings
    117119
    118120#
     
    126128# Misc compiler options
    127129#
    128 CFLAGS_COMMON   = $(GCC_WARNINGS) -march=i486 -mtune=generic -Zomf
     130CFLAGS_COMMON   = $(GCC_WARNINGS) $(GCC_WARNINGS_C) -march=i486 -mtune=generic -Zomf
    129131CFLAGS_OPT      = -s $(POPT)
    130132CFLAGS_DBG      = -g
    131133
    132 CXXFLAGS_COMMON = -DCC_NOEX $(CFLAGS_COMMON)
     134CXXFLAGS_COMMON = -DCC_NOEX $(GCC_WARNINGS) $(GCC_WARNINGS_CXX) -march=i486 -mtune=generic -Zomf
    133135CXXFLAGS_OPT    = $(CFLAGS_OPT)
    134136CXXFLAGS_DBG    = $(CFLAGS_DBG)
Note: See TracChangeset for help on using the changeset viewer.