要禁用所有文件中的警告,我正在使用以下预编译器标头:
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
#pragma clang diagnostic ignored "-Wmacro-redefined"
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#pragma clang diagnostic ignored "-Wprotocol"
#pragma clang diagnostic ignored "-Wmissing-selector-name"
#endif /* PrefixHeader_pch */
我需要为位于特定文件夹中的文件禁用警告,例如$(SRCROOT)/wrapper/
。我怎么能这样做?