Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Sat, 2010-10-16 at 01:01 +0200, Kenneth Venken wrote:
some "shadows a member of 'this'" and "unused parameter" warnings.

The binfilter is rather unloved, its effectively a copy of older
versions of sw/sd/sc and their dependencies, so if you see a warning in
binfilter and want to fix it, you can have a quick look at the
equivalent sw/sd/sc dir and see what fix was used there.

i've added an underscore prefix to the parameters that shadowed the
members. Are there any naming conventions i should know of? 

what is the correct way to handle the "unused parameter" warnings?

void foo(bool thing) { }

thing unused! warning

Safest fix is e.g.

void foo(bool /*thing*/) {}

C++ allow this. Handy for the general case.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.