issue #2404: Open deprecated warning for Android and Linux.

This commit is contained in:
James Chen 2013-07-25 15:04:26 +08:00
parent 387ea1899c
commit f8392adce2
2 changed files with 4 additions and 4 deletions

View File

@ -170,8 +170,8 @@ LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libtiff_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libwebp_static
# define the macro to compile through support/zip_support/ioapi.c
LOCAL_CFLAGS := -Wno-psabi -Wno-deprecated-declarations -DUSE_FILE32API
LOCAL_EXPORT_CFLAGS := -Wno-psabi -Wno-deprecated-declarations -DUSE_FILE32API
LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API
LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API
include $(BUILD_STATIC_LIBRARY)

View File

@ -7,8 +7,8 @@ CXX = g++
# GCC 4.6 is primary platform for cocos2d v.3, because it's default compiler for Android,
# Blackberry, some Linux distributions.It supports all important features of c++11, but have
# no flag "-std=c++11" (which was turned on in version 4.7).
CCFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC
CXXFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC -std=gnu++0x
CCFLAGS += -MMD -Werror -fPIC
CXXFLAGS += -MMD -Werror -fPIC -std=gnu++0x
ARFLAGS = cr
DEFINES += -DLINUX -DCC_KEYBOARD_SUPPORT