Skip to content

Conversation

@copybara-service
Copy link

Suppress "-Wreturn-type-c-linkage" in generated bindings.

char_ is technically not C linkage compatible because it has a
nontrivial constructor, but in practice it is compatible (four our use
of it in bindings) and we would prefer to suppress the warning rather
than give it a trivial constructor that makes it less safe to use.

@copybara-service copybara-service bot force-pushed the test_860257643 branch 2 times, most recently from 7f8c7ed to d27d9c4 Compare January 23, 2026 23:14
`char_` is technically not C linkage compatible because it has a
nontrivial constructor, but in practice it is compatible (four our use
of it in bindings) and we would prefer to suppress the warning rather
than give it a trivial constructor that makes it less safe to use.

PiperOrigin-RevId: 860257643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant