This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix PR 5582 and 10538, missed uninitialized variable warning


Jason Merrill <jason@redhat.com> writes:

| > I also do not warn about int *x = &x; because x is initialized.

That code is invalid anyway.

| 
| Right.

Does it warn on

   void* p = &p;

or

   circular_buffer buf = circular_buffer(buf);

? 

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]