Re: pr_debug and "if (0)" statement

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

 



> Then why not simply use "do { } while (0)" or similar?

> [...]
> >         can someone please explain me the meaning/benefits of the "if
> >         (0)" statement?

(Probably) it is used to avoid "unused variable" message during
compilation.

regards,
 Matteo
-- 
A full belly makes a dull brain.
		-- Ben Franklin

		[and the local candy machine man.  Ed]

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux