VirtualBox

Changeset 63494 in vbox for trunk/src


Ignore:
Timestamp:
Aug 15, 2016 5:02:35 PM (8 years ago)
Author:
vboxsync
Message:

turn deprecated-declarations into a warning that doesn't cause errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r63492 r63494  
    246246
    247247## @todo we're using a number of deprecated APIs, please fix and remove these!
    248 VirtualBox_CXXFLAGS.darwin    += -Wno-deprecated-declarations
    249 VirtualBox_OBJCFLAGS.darwin   += -Wno-deprecated-declarations
    250 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
     248ifdef VBOX_WITH_NEW_XCODE
     249 VirtualBox_CXXFLAGS.darwin    += -Wno-error=deprecated-declarations
     250 VirtualBox_OBJCFLAGS.darwin   += -Wno-error=deprecated-declarations
     251 VirtualBox_OBJCXXFLAGS.darwin += -Wno-error=deprecated-declarations
     252else
     253 VirtualBox_CXXFLAGS.darwin    += -Wno-deprecated-declarations
     254 VirtualBox_OBJCFLAGS.darwin   += -Wno-deprecated-declarations
     255 VirtualBox_OBJCXXFLAGS.darwin += -Wno-deprecated-declarations
     256endif
    251257
    252258ifeq ($(KBUILD_TYPE),release)
     
    11721178 PROGRAMS += vmstarter
    11731179 vmstarter_TEMPLATE = VBOXR3EXE
    1174  vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations ## @todo fix deprecate API use!
     1180 ifdef VBOX_WITH_NEW_XCODE
     1181  vmstarter_OBJCXXFLAGS += -Wno-error=deprecated-declarations ## @todo fix deprecate API use!
     1182 else
     1183  vmstarter_OBJCXXFLAGS += -Wno-deprecated-declarations
     1184 endif
    11751185 vmstarter_LDFLAGS += -framework AppKit
    11761186 vmstarter_SOURCES = src/platform/darwin/vmstarter.mm
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette