Powered by Linux
Re: Smatch - possible regression in unreachable code check — Semantic Matching Tool

Re: Smatch - possible regression in unreachable code check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yeah.  The re-work to scoped_guard() has landed in linux next.  It does
something like:

	for (struct lock __cleanup(destroy) = constructor;
	     is_not_optional || took_lock();
	     goto done_label)
		if (0) {
			done_label: break;
		} else

Smatch has always ignored if (0) statements because it never occured to me
that there would be a label statement in there.  But also because of the way
that Smatch handles loops, this was always going to need to be handled specially.

I'll try push something today.

regards,
dan carpenter





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux