diff options
author | Michael Rebello <mrebello@lyft.com> | 2018-03-28 16:18:30 -0700 |
---|---|---|
committer | Michael Rebello <mrebello@lyft.com> | 2018-05-10 13:27:23 -0700 |
commit | 9c926f325de84b4692d72ac67050bc6f66bbd47d (patch) | |
tree | 382c44fe731867f6a3d158e530fd41611a8b8b69 /doc/cpp-style-guide.md | |
parent | 173a29d82e3235d9b988f8e6da823ca6df806e21 (diff) |
Resolve Swift warnings by specifying void arguments
The following functions in the `fork.h` file cause a `This function declaration is not a prototype` warning in Swift:
```
void grpc_prefork(void);
void grpc_postfork_parent(void);
void grpc_postfork_child(void);
void grpc_fork_handlers_auto_register(void);
```
Explicitly specifying `void` as the argument resolves the warnings.
Reproducible using Xcode 9.2 with `SwiftGRPC`/`gRPC-Core` via CocoaPods.
Diffstat (limited to 'doc/cpp-style-guide.md')
0 files changed, 0 insertions, 0 deletions