Xcode 14.3 (and upstream LLVM 14) fixed [a bug](https://github.com/llvm/llvm-project/issues/51273) where `-Wdeclaration-after-statement` would be ignored when building with C99 or a later language standard. This revealed 22 warnings in ObjC files where variables are declared in the middle of a block.
We could simply fix all of these, but declaring variables in the middle of blocks does feel like idiomatic Objective-C (which is why it was done to begin with). It would also mean changes in 22 places.
Disabling the warning is the other option. It's not ideal, but using a pragma in each file seems like the best way to do so. (We don't have a way to pass special ObjC-only compiler flags, and even if we did, the '-Wno-declaration-after-statement' would have to come after the '-W', which is fragile.) Alternately, the pragma (guarded by `#ifdef __OBJC__`) could go into a header file included by all files, like `macdrv_cocoa.h`.
Opinions/suggestions/comments are welcome.