Re: cc1plus: note: source object is likely at address zero
Basile Starynkevitch <[email protected]> Fri, 27 Mar 2026 17:27:48 +0100
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2026-03-05 at 13:08 +0000, Jonny Grant wrote: > Hello > > > Is there a way to make these "notes" appear as warnings? That can > then be upgraded to errors by -Werror > > https://godbolt.org/z/4ae71rfj8 GCC accepts plugins, so there is the possibility of making yours (see also https://arxiv.org/abs/1109.0779 and old code on https://github.com/bstarynk/bismon ...) If you want to analyze some C code (specifically) consider also open source software like frama-c.com ; that team (I worked ten years with them) also develops some C++ static analysis software. Regards -- Basile STARYNKEVITCH <[email protected]> 8 rue de la Faïencerie http://starynkevitch.net/Basile/ 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSys https://orcid.org/0000-0003-0908-5250