[parted-devel] [PATCH 04/24] libparted: Avoid a GCC warning for unused functions

Brian C. Lane bcl at redhat.com
Wed Nov 18 21:06:34 GMT 2020


On Mon, Nov 16, 2020 at 03:30:38PM -0500, Phillip Susi wrote:
> 
> Brian C. Lane writes:
> 
> > To avoid the warning, add two more '#if 0' to disable the two functions.
> 
> Rather than #if 0 out more code, why not just delete all of the unused
> code?
> 

I agree, with git there's no reason to leave these kinds of things in
the codebase. Especially since it's named clobber :)

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart




More information about the parted-devel mailing list