[webkit-dev] Is there a rule to use UNUSED_PARAM ?
Alfonso Guerra
huperniketes at gmail.com
Mon Oct 1 07:01:59 PDT 2012
It's never acceptable to use comments to "hide" code from the compiler,
particularly when the compiler provides constructs which permit one to
indicate intent (eg, ifdef and the pragma "unused").
On Oct 1, 2012 9:47 AM, "Gyuyoung Kim" <gyuyoung at gmail.com> wrote:
> Hello WebKit folks,
>
> There were build warning related to unused parameter nowadays. I think
> there are three solutions. One is to remove parameter,
> another is to use UNUSED_PARAM macro and the other is to use /* */ in
> parameters.
>
> I like to use UNUSED_PARAM macro except for primitive parameters
> personally, for example
>
> void foo(RenderObject* object, int /*width*/, int /*height*/) {
> UNUSED_PARAM(object);
> }
>
> I'd like to know what webkittens think about this.
>
> Cheers,
> Gyuyoung
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121001/52a6ecde/attachment.html>
More information about the webkit-dev
mailing list