We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My gcc compiler gives me this warning:
'_Alignof' applied to an expression is a GNU extension [-Wgnu-alignof-expression]
The alignof is used for example in:
alignof
void pbtools_decoder_read_string(struct pbtools_decoder_t *self_p, int wire_type, char **value_pp) { uint64_t size; size = decoder_read_length_delimited(self_p, wire_type); *value_pp = decoder_heap_alloc(self_p, size + 1, alignof(**value_pp) ); if (*value_pp == NULL) { return; } decoder_read(self_p, (uint8_t *)*value_pp, size); (*value_pp)[size] = '\0'; }
If I change it to __alignof__ (https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzarg/alignof.htm) this warning disappears.
__alignof__
The text was updated successfully, but these errors were encountered:
Try release 0.29.1, available on PyPI. Clang no longer warns about using the GNU extension. Let me know if your compiler still complains.
Sorry, something went wrong.
Fixed, gcc stopped complaining.
Thanks!
No branches or pull requests
My gcc compiler gives me this warning:
'_Alignof' applied to an expression is a GNU extension [-Wgnu-alignof-expression]
The
alignof
is used for example in:If I change it to
__alignof__
(https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzarg/alignof.htm) this warning disappears.The text was updated successfully, but these errors were encountered: