diff options
author | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-08-18 12:00:45 -0700 |
---|---|---|
committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-08-18 12:20:32 -0700 |
commit | 2be801a805c6cca08aaa33fd387dcc7bd4fe8aac (patch) | |
tree | 78abcd17e5cd43cfb6f704d81b15f1caa532ce89 /libjava/gnu/xml/dom/DomText.h | |
parent | 0e09be99c01cc1517875be58a78e76cba7b58757 (diff) | |
download | gcc-2be801a805c6cca08aaa33fd387dcc7bd4fe8aac.zip gcc-2be801a805c6cca08aaa33fd387dcc7bd4fe8aac.tar.gz gcc-2be801a805c6cca08aaa33fd387dcc7bd4fe8aac.tar.bz2 |
docs: Fix __builtin_object_size example [PR121581]
This example used to work (with C) in GCC 14 before the
warning for different pointer types without a cast was changed
to an error.
The fix is to make the q variable `int*` rather than the current `char*`.
This also fixes the example for C++ too.
Pushed as obvious after doing a `make html`.
PR middle-end/121581
gcc/ChangeLog:
* doc/extend.texi (__builtin_object_size): Fix example.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libjava/gnu/xml/dom/DomText.h')
0 files changed, 0 insertions, 0 deletions