Post

Replies

Boosts

Views

Activity

Does this error message concerning C prototype in Xcode beta make sense?
My project has GoogleDataTransport pod dependency. When compiling with Xcode 14.3 beta (14E5197f), an error message saying that A function declaration without a prototype is deprecated in all versions of C [-Werror, -Wstrict-prototypes] appears on this line GDTCORNetworkType GDTCORNetworkTypeMessage(){ (github). After changing to GDTCORNetworkType GDTCORNetworkTypeMessage(void) the project compiled successfully. I am not particularly knowledgeable in C or Obj-C, but it seems to me that the GoogleDataTransport library correctly "declares" the function in the .h file (github). However, the error message still goes to the "definition" of function. I am wondering if I should file a bug report to the GoogleDataTransport team or the Xcode team, or if there is something I should fix. I've checked that my Xcode 14.2 has the same -Wstrict-prototypes flag set, but no error. (Build Settings > Strict Prototypes, is it?) Thanks for any help and information.
6
3
7.5k
Mar ’23