<html><head><meta http-equiv="Content-Type" content="text/html charset=koi8-r"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>01.10.2012, Χ 6:47, Gyuyoung Kim <<a href="mailto:gyuyoung@gmail.com">gyuyoung@gmail.com</a>> ΞΑΠΙΣΑΜ(Α):</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">There were build warning related to unused parameter nowadays. I think there are three solutions. One is to remove parameter,</div><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">another is to use UNUSED_PARAM macro and the other is to use /* */ in parameters.</div><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></div><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">I like to use UNUSED_PARAM macro except for primitive parameters personally</div></blockquote><br></div><div><div>I just searched WebCore for UNUSED_PARAM, its usage appears quite consistent. We use UNUSED_PARAM in .cpp files inside ifdefs, where it's not feasible to omit parameter names. We also use them when function declaration and definition are the same (i.e. in .h files), as there is no other place one could discover parameter's meaning if it were unnamed.</div></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; font-size: 12px; "><div>- WBR, Alexey Proskuryakov</div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>