Re: cc1plus: note: source object is likely at address zero
Arsen Arsenović via Gcc-help <[email protected]> Thu, 05 Mar 2026 14:31:24 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
Jonny Grant <[email protected]> writes: > Is there a way to make these "notes" appear as warnings? That can then > be upgraded to errors by -Werror > [...] > <source>: In function 'int main()': > <source>:18:11: warning: 'int __builtin_puts(const char*)' reading 1 or more bytes from a region of size 0 [-Wstringop-overread] ^ That part is the actual warning, so you want -Werror=stringop-overread. The note is just added context for the warning (as per the usual - notes serve to specify more info about diagnostics). -- Arsen Arsenović
signature.asc
(application/pgp-signature, 418 B)
-----BEGIN PGP SIGNATURE----- iQECBAEWCgCqFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAmmphawbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw NjE1MkMyOTQzMDFFQTJDNDkzEBxhcnNlbkBhYXJzZW4ubWUACgkQUsKUMB6ixJP7 owEAtaGODrq8sChlqZk6ZjuJI43B++tO0OAi3vc55ap+WQUA/jdnk30tLEcZauZt rvHVDTvmz+FG1N7121yAmccRxT8N =rqXO -----END PGP SIGNATURE-----