This is the mail archive of the gcc@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: Should gcc give warning for this case?


This question is not appropriate on this mailing list, questions about
using GCC should be sent to the gcc-help@gcc.gnu.org list, please take
any follow up there instead, thanks.

On 29 April 2012 07:14, Qun-Ying wrote:
>
> No warning at all. ?Should gcc warn about the *next pointer points to
> an unknown structure?

No.

next doesn't point to anything, it's NULL, which is safe and entirely
correct behaviour for a pointer.


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