aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl
diff options
context:
space:
mode:
authorGravatar Michael Rebello <mrebello@lyft.com>2018-03-28 16:18:30 -0700
committerGravatar Michael Rebello <mrebello@lyft.com>2018-05-10 13:27:23 -0700
commit9c926f325de84b4692d72ac67050bc6f66bbd47d (patch)
tree382c44fe731867f6a3d158e530fd41611a8b8b69 /include/grpc/impl
parent173a29d82e3235d9b988f8e6da823ca6df806e21 (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 'include/grpc/impl')
-rw-r--r--include/grpc/impl/codegen/fork.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/grpc/impl/codegen/fork.h b/include/grpc/impl/codegen/fork.h
index baec7a2f10..555df3490f 100644
--- a/include/grpc/impl/codegen/fork.h
+++ b/include/grpc/impl/codegen/fork.h
@@ -37,12 +37,12 @@
* }
*/
-void grpc_prefork();
+void grpc_prefork(void);
-void grpc_postfork_parent();
+void grpc_postfork_parent(void);
-void grpc_postfork_child();
+void grpc_postfork_child(void);
-void grpc_fork_handlers_auto_register();
+void grpc_fork_handlers_auto_register(void);
#endif /* GRPC_IMPL_CODEGEN_FORK_H */