Re: [PATCH] usb: omap_udc: fix build warnings

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

 



Hi Anand,

On Fri,  3 Dec 2010 23:13:51 +0530 you wrote:
> Not sure if these are false positives, but it does shut the
> compiler up.

Surely that's not acceptable! If they aren't false positives, and the
pointers really are "used uninitialized", then initializing them to
NULL isn't actually any safer than what was there before. Just shutting
the compiler up is only acceptable if you can also say "and I've
confirmed that this is a safe way to fix it".


(Sorry, I deal with safety related software at work and things done "to
shut the compiler up" or "so that Lint doesn't complain" are a common
source of bugs.)

Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux