Skip to content

Commit

Permalink
Fix CgRPC linker warnings
Browse files Browse the repository at this point in the history
Without this these warnings are produced at link time:

```
ld: warning: pointer not aligned at address 0x1004354AA (_grpc_lb_v1_ClientStats_fields + 106 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x10043544B (_grpc_lb_v1_ClientStats_fields + 11 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x1004354EE (_grpc_lb_v1_LoadBalanceRequest_fields + 30 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x1004354DB (_grpc_lb_v1_LoadBalanceRequest_fields + 11 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x10043552E (_grpc_lb_v1_InitialLoadBalanceResponse_fields + 30 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x10043555B (_grpc_lb_v1_ServerList_fields + 11 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x10043559E (_grpc_lb_v1_LoadBalanceResponse_fields + 30 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
ld: warning: pointer not aligned at address 0x10043558B (_grpc_lb_v1_LoadBalanceResponse_fields + 11 from bazel-out/ios_x86_64-fastbuild/bin/external/com_github_grpc_grpc_swift/libCgRPC.a(load_balancer.pb.o))
```
  • Loading branch information
keith committed Apr 19, 2019
1 parent 139c22d commit 7155834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/com_github_grpc_grpc_swift/BUILD.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ cc_library(
"Sources/CgRPC/third_party/nanopb/**/*.h",
]) + ["Sources/CgRPC/shim/internal.h"],
hdrs = ["Sources/CgRPC/shim/cgrpc.h"],
copts = ["-DPB_NO_PACKED_STRUCTS=1"],
includes = ["Sources/CgRPC/include"],
tags = ["swift_module=CgRPC"],
deps = [
Expand Down

0 comments on commit 7155834

Please sign in to comment.