this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixes for Clang 11+

+69 -62
+12
CMakeLists.txt
··· 64 64 SET(IGNORED_WARNINGS "${IGNORED_WARNINGS} -Wno-expansion-to-defined") 65 65 endif (${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS "3.9") 66 66 67 + if(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND ${CMAKE_C_COMPILER_VERSION} VERSION_GREATER_EQUAL "11") 68 + # newer Clang chokes on the idiomatic way to use CF_ENUM; e.g. like this: 69 + # typedef CF_ENUM(int, MyEnum) { 70 + # MY_ENUM_THING, 71 + # MY_ENUM_OTHER_THING, 72 + # # etc... 73 + # } 74 + set(IGNORED_WARNINGS "${IGNORED_WARNINGS} -Wno-elaborated-enum-base -Wno-undef-prefix") 75 + set(ASM_IGNORED_WARNINGS "${ASM_IGNORED_WARNINGS} -Wno-undef-prefix") 76 + endif() 77 + 67 78 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${IGNORED_WARNINGS}") 68 79 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${IGNORED_WARNINGS}") 80 + set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${ASM_IGNORED_WARNINGS}") 69 81 SET(CMAKE_C_FLAGS_DEBUG "-O0 -ggdb") 70 82 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -ggdb") 71 83
+3 -3
src/frameworks/AVFoundation/include/AVFoundation/AVAnimation.h
··· 2 2 3 3 typedef NSString *AVLayerVideoGravity; 4 4 5 - const AVLayerVideoGravity AVLayerVideoGravityResize; 6 - const AVLayerVideoGravity AVLayerVideoGravityResizeAspect; 7 - const AVLayerVideoGravity AVLayerVideoGravityResizeAspectFill; 5 + extern const AVLayerVideoGravity AVLayerVideoGravityResize; 6 + extern const AVLayerVideoGravity AVLayerVideoGravityResizeAspect; 7 + extern const AVLayerVideoGravity AVLayerVideoGravityResizeAspectFill;
+1 -1
src/frameworks/AVFoundation/include/AVFoundation/AVAsset.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - NSString *const AVURLAssetPreferPreciseDurationAndTimingKey; 22 + extern NSString *const AVURLAssetPreferPreciseDurationAndTimingKey; 23 23 24 24 @interface AVAsset : NSObject 25 25
+3 -3
src/frameworks/AVFoundation/include/AVFoundation/AVAssetExportSession.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - NSString *const AVAssetExportPresetHighestQuality; 23 - NSString *const AVAssetExportPresetMediumQuality; 24 - NSString *const AVAssetExportPresetLowQuality; 22 + extern NSString *const AVAssetExportPresetHighestQuality; 23 + extern NSString *const AVAssetExportPresetMediumQuality; 24 + extern NSString *const AVAssetExportPresetLowQuality; 25 25 26 26 @interface AVAssetExportSession : NSObject 27 27
+6 -6
src/frameworks/AVFoundation/include/AVFoundation/AVAudioSettings.h
··· 1 1 #import <Foundation/Foundation.h> 2 2 3 - NSString *const AVChannelLayoutKey; 4 - NSString *const AVEncoderBitRateChannelKey; 5 - NSString *const AVFormatIDKey; 6 - NSString *const AVLinearPCMBitDepthKey; 7 - NSString *const AVNumberOfChannelsKey; 8 - NSString *const AVSampleRateKey; 3 + extern NSString *const AVChannelLayoutKey; 4 + extern NSString *const AVEncoderBitRateChannelKey; 5 + extern NSString *const AVFormatIDKey; 6 + extern NSString *const AVLinearPCMBitDepthKey; 7 + extern NSString *const AVNumberOfChannelsKey; 8 + extern NSString *const AVSampleRateKey;
+18 -18
src/frameworks/AVFoundation/include/AVFoundation/AVCaptureSession.h
··· 21 21 22 22 typedef NSString *AVCaptureSessionPreset; 23 23 24 - NSString *const AVCaptureDeviceWasConnectedNotification; 25 - NSString *const AVCaptureDeviceWasDisconnectedNotification; 26 - NSString *const AVCaptureSessionDidStartRunningNotification; 27 - NSString *const AVCaptureSessionDidStopRunningNotification; 28 - NSString *const AVCaptureSessionErrorKey; 29 - NSString *const AVCaptureSessionRuntimeErrorNotification; 24 + extern NSString *const AVCaptureDeviceWasConnectedNotification; 25 + extern NSString *const AVCaptureDeviceWasDisconnectedNotification; 26 + extern NSString *const AVCaptureSessionDidStartRunningNotification; 27 + extern NSString *const AVCaptureSessionDidStopRunningNotification; 28 + extern NSString *const AVCaptureSessionErrorKey; 29 + extern NSString *const AVCaptureSessionRuntimeErrorNotification; 30 30 31 - const AVCaptureSessionPreset AVCaptureSessionPreset3840x2160; 32 - const AVCaptureSessionPreset AVCaptureSessionPreset1920x1080; 33 - const AVCaptureSessionPreset AVCaptureSessionPreset1280x720; 34 - const AVCaptureSessionPreset AVCaptureSessionPreset960x540; 35 - const AVCaptureSessionPreset AVCaptureSessionPreset640x480; 36 - const AVCaptureSessionPreset AVCaptureSessionPreset352x288; 37 - const AVCaptureSessionPreset AVCaptureSessionPreset320x240; 38 - const AVCaptureSessionPreset AVCaptureSessionPresetiFrame1280x720; 39 - const AVCaptureSessionPreset AVCaptureSessionPresetiFrame960x540; 40 - const AVCaptureSessionPreset AVCaptureSessionPresetHigh; 41 - const AVCaptureSessionPreset AVCaptureSessionPresetLow; 42 - const AVCaptureSessionPreset AVCaptureSessionPresetMedium; 31 + extern const AVCaptureSessionPreset AVCaptureSessionPreset3840x2160; 32 + extern const AVCaptureSessionPreset AVCaptureSessionPreset1920x1080; 33 + extern const AVCaptureSessionPreset AVCaptureSessionPreset1280x720; 34 + extern const AVCaptureSessionPreset AVCaptureSessionPreset960x540; 35 + extern const AVCaptureSessionPreset AVCaptureSessionPreset640x480; 36 + extern const AVCaptureSessionPreset AVCaptureSessionPreset352x288; 37 + extern const AVCaptureSessionPreset AVCaptureSessionPreset320x240; 38 + extern const AVCaptureSessionPreset AVCaptureSessionPresetiFrame1280x720; 39 + extern const AVCaptureSessionPreset AVCaptureSessionPresetiFrame960x540; 40 + extern const AVCaptureSessionPreset AVCaptureSessionPresetHigh; 41 + extern const AVCaptureSessionPreset AVCaptureSessionPresetLow; 42 + extern const AVCaptureSessionPreset AVCaptureSessionPresetMedium; 43 43 44 44 @interface AVCaptureSession : NSObject 45 45
+11 -11
src/frameworks/AVFoundation/include/AVFoundation/AVError.h
··· 1 1 #import <Foundation/Foundation.h> 2 2 3 - const NSErrorDomain AVFoundationErrorDomain; 3 + extern const NSErrorDomain AVFoundationErrorDomain; 4 4 5 - NSString *const AVErrorDeviceKey; 6 - NSString *const AVErrorFileSizeKey; 7 - NSString *const AVErrorMediaSubTypeKey; 8 - NSString *const AVErrorMediaTypeKey; 9 - NSString *const AVErrorTimeKey; 10 - NSString *const AVErrorPIDKey; 11 - NSString *const AVErrorRecordingSuccessfullyFinishedKey; 12 - NSString *const AVErrorPresentationTimeStampKey; 13 - NSString *const AVErrorPersistentTrackIDKey; 14 - NSString *const AVErrorFileTypeKey; 5 + extern NSString *const AVErrorDeviceKey; 6 + extern NSString *const AVErrorFileSizeKey; 7 + extern NSString *const AVErrorMediaSubTypeKey; 8 + extern NSString *const AVErrorMediaTypeKey; 9 + extern NSString *const AVErrorTimeKey; 10 + extern NSString *const AVErrorPIDKey; 11 + extern NSString *const AVErrorRecordingSuccessfullyFinishedKey; 12 + extern NSString *const AVErrorPresentationTimeStampKey; 13 + extern NSString *const AVErrorPersistentTrackIDKey; 14 + extern NSString *const AVErrorFileTypeKey;
+4 -4
src/frameworks/AVFoundation/include/AVFoundation/AVMediaFormat.h
··· 3 3 typedef NSString *AVMediaType; 4 4 typedef NSString *AVFileType; 5 5 6 - const AVMediaType AVMediaTypeAudio; 7 - const AVMediaType AVMediaTypeVideo; 6 + extern const AVMediaType AVMediaTypeAudio; 7 + extern const AVMediaType AVMediaTypeVideo; 8 8 9 - const AVFileType AVFileTypeMPEG4; 10 - const AVFileType AVFileTypeQuickTimeMovie; 9 + extern const AVFileType AVFileTypeMPEG4; 10 + extern const AVFileType AVFileTypeQuickTimeMovie;
+1 -1
src/frameworks/AVFoundation/include/AVFoundation/AVPlayerItem.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 - NSString *const AVPlayerItemDidPlayToEndTimeNotification; 22 + extern NSString *const AVPlayerItemDidPlayToEndTimeNotification; 23 23 24 24 @interface AVPlayerItem : NSObject 25 25
+10 -10
src/frameworks/AVFoundation/include/AVFoundation/AVVideoSettings.h
··· 1 1 #import <Foundation/Foundation.h> 2 2 3 - NSString *const AVVideoAverageBitRateKey; 4 - NSString *const AVVideoCodecAppleProRes422; 5 - NSString *const AVVideoCodecAppleProRes4444; 6 - NSString *const AVVideoCodecH264; 7 - NSString *const AVVideoCodecHEVC; 8 - NSString *const AVVideoCodecJPEG; 9 - NSString *const AVVideoCodecKey; 10 - NSString *const AVVideoCompressionPropertiesKey; 11 - NSString *const AVVideoHeightKey; 12 - NSString *const AVVideoWidthKey; 3 + extern NSString *const AVVideoAverageBitRateKey; 4 + extern NSString *const AVVideoCodecAppleProRes422; 5 + extern NSString *const AVVideoCodecAppleProRes4444; 6 + extern NSString *const AVVideoCodecH264; 7 + extern NSString *const AVVideoCodecHEVC; 8 + extern NSString *const AVVideoCodecJPEG; 9 + extern NSString *const AVVideoCodecKey; 10 + extern NSString *const AVVideoCompressionPropertiesKey; 11 + extern NSString *const AVVideoHeightKey; 12 + extern NSString *const AVVideoWidthKey;
-5
src/tools/CMakeLists.txt
··· 1 1 project(tools) 2 2 3 - add_compile_options( 4 - -Werror 5 - -Wall 6 - ) 7 - 8 3 add_darling_executable(sw_vers sw_vers.c) 9 4 add_darling_executable(sudo sudo.c) 10 5 add_darling_executable(codesign codesign.c)