[ObjC] Fix potential `-Wstrict-prototypes` warning.

PiperOrigin-RevId: 609718293
pull/15931/head
Thomas Van Lenten 1 year ago committed by Copybara-Service
parent 5a0135e65a
commit f9731fdf73
  1. 2
      objectivec/GPBAny.pbobjc.m
  2. 2
      objectivec/GPBDuration.pbobjc.m
  3. 2
      objectivec/GPBTimestamp.pbobjc.m
  4. 2
      src/google/protobuf/compiler/objectivec/file.cc

@ -43,7 +43,7 @@ static GPBFileDescription GPBAnyRoot_FileDescription = {
// This is to help make sure that the GPBWellKnownTypes.* categories get linked and
// developers do not have to use the `-ObjC` linker flag. More information
// here: https://medium.com/ios-os-x-development/categories-in-static-libraries-78e41f8ddb96
__attribute__((used)) static NSString* any_importCategories () {
__attribute__((used)) static NSString* any_importCategories(void) {
return GPBWellKnownTypesErrorDomain;
}

@ -43,7 +43,7 @@ static GPBFileDescription GPBDurationRoot_FileDescription = {
// This is to help make sure that the GPBWellKnownTypes.* categories get linked and
// developers do not have to use the `-ObjC` linker flag. More information
// here: https://medium.com/ios-os-x-development/categories-in-static-libraries-78e41f8ddb96
__attribute__((used)) static NSString* duration_importCategories () {
__attribute__((used)) static NSString* duration_importCategories(void) {
return GPBWellKnownTypesErrorDomain;
}

@ -43,7 +43,7 @@ static GPBFileDescription GPBTimestampRoot_FileDescription = {
// This is to help make sure that the GPBWellKnownTypes.* categories get linked and
// developers do not have to use the `-ObjC` linker flag. More information
// here: https://medium.com/ios-os-x-development/categories-in-static-libraries-78e41f8ddb96
__attribute__((used)) static NSString* timestamp_importCategories () {
__attribute__((used)) static NSString* timestamp_importCategories(void) {
return GPBWellKnownTypesErrorDomain;
}

@ -155,7 +155,7 @@ void EmitLinkWKTs(absl::string_view name, io::Printer* p) {
// This is to help make sure that the GPBWellKnownTypes.* categories get linked and
// developers do not have to use the `-ObjC` linker flag. More information
// here: https://medium.com/ios-os-x-development/categories-in-static-libraries-78e41f8ddb96
__attribute__((used)) static NSString* $basename$_importCategories () {
__attribute__((used)) static NSString* $basename$_importCategories(void) {
return GPBWellKnownTypesErrorDomain;
}
)objc");

Loading…
Cancel
Save