Author: mvidner
Date: Thu May 26 18:26:27 2011
New Revision: 64123
URL: http://svn.opensuse.org/viewcvs/yast?rev=64123&view=rev
Log:
eliminated some warnings
"warning: unused parameter ‘indent’" in *::toXml
indent is righfully unused when it produces one-liners
Modified:
trunk/core/libycp/src/Type.cc
trunk/core/libycp/src/YCPBoolean.cc
trunk/core/libycp/src/YCPByteblock.cc
trunk/core/libycp/src/YCPCode.cc
trunk/core/libycp/src/YCPExternal.cc
trunk/core/libycp/src/YCPFloat.cc
trunk/core/libycp/src/YCPInteger.cc
trunk/core/libycp/src/YCPString.cc
trunk/core/libycp/src/YCPSymbol.cc
trunk/core/libycp/src/YCPVoid.cc
trunk/core/libycp/src/YCode.cc
trunk/core/libycp/src/YExpression.cc
trunk/core/libycp/src/YStatement.cc
Modified: trunk/core/libycp/src/Type.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/Type.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/Type.cc (original)
+++ trunk/core/libycp/src/Type.cc Thu May 26 18:26:27 2011
@@ -155,7 +155,7 @@
std::ostream &
-Type::toXml( std::ostream & str, int indent ) const
+Type::toXml( std::ostream & str, int /*indent*/ ) const
{
str << " type=\"" << toXmlString() << "\"";
if (m_const) str << " const=\"1\"";
Modified: trunk/core/libycp/src/YCPBoolean.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPBoolean.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPBoolean.cc (original)
+++ trunk/core/libycp/src/YCPBoolean.cc Thu May 26 18:26:27 2011
@@ -60,7 +60,7 @@
std::ostream &
-YCPBooleanRep::toXml (std::ostream & str, int indent ) const
+YCPBooleanRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
Modified: trunk/core/libycp/src/YCPByteblock.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPByteblock.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPByteblock.cc (original)
+++ trunk/core/libycp/src/YCPByteblock.cc Thu May 26 18:26:27 2011
@@ -138,7 +138,7 @@
}
std::ostream &
-YCPByteblockRep::toXml (std::ostream & str, int indent ) const
+YCPByteblockRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return Xmlcode::writeBytep (str, bytes, len);
}
Modified: trunk/core/libycp/src/YCPCode.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPCode.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPCode.cc (original)
+++ trunk/core/libycp/src/YCPCode.cc Thu May 26 18:26:27 2011
@@ -163,7 +163,7 @@
}
std::ostream &
-YCPEntryRep::toXml( std::ostream & str, int indent ) const
+YCPEntryRep::toXml( std::ostream & str, int /*indent*/ ) const
{
return Xmlcode::writeEntry (str, m_entry);
}
@@ -226,7 +226,7 @@
}
std::ostream &
-YCPReferenceRep::toXml( std::ostream & str, int indent ) const
+YCPReferenceRep::toXml( std::ostream & str, int /*indent*/ ) const
{
// this is not used, instead YEVariable is used for xml
return str;
@@ -235,13 +235,13 @@
std::ostream &
-YCPBreakRep::toXml( std::ostream & str, int indent ) const
+YCPBreakRep::toXml( std::ostream & str, int /*indent*/ ) const
{
return str << "<break/>";
}
std::ostream &
-YCPReturnRep::toXml( std::ostream & str, int indent ) const
+YCPReturnRep::toXml( std::ostream & str, int /*indent*/ ) const
{
return str << "<return/>";
}
Modified: trunk/core/libycp/src/YCPExternal.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPExternal.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPExternal.cc (original)
+++ trunk/core/libycp/src/YCPExternal.cc Thu May 26 18:26:27 2011
@@ -78,7 +78,7 @@
}
std::ostream &
-YCPExternalRep::toXml (std::ostream & str, int indent ) const
+YCPExternalRep::toXml (std::ostream & str, int /*indent*/ ) const
{
y2error ("Trying to store an external payload in xml");
return str;
Modified: trunk/core/libycp/src/YCPFloat.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPFloat.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPFloat.cc (original)
+++ trunk/core/libycp/src/YCPFloat.cc Thu May 26 18:26:27 2011
@@ -100,7 +100,7 @@
}
std::ostream &
-YCPFloatRep::toXml (std::ostream & str, int indent ) const
+YCPFloatRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
Modified: trunk/core/libycp/src/YCPInteger.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPInteger.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPInteger.cc (original)
+++ trunk/core/libycp/src/YCPInteger.cc Thu May 26 18:26:27 2011
@@ -112,7 +112,7 @@
std::ostream &
-YCPIntegerRep::toXml (std::ostream & str, int indent ) const
+YCPIntegerRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
Modified: trunk/core/libycp/src/YCPString.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPString.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPString.cc (original)
+++ trunk/core/libycp/src/YCPString.cc Thu May 26 18:26:27 2011
@@ -132,7 +132,7 @@
std::ostream &
-YCPStringRep::toXml (std::ostream & str, int indent ) const
+YCPStringRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
Modified: trunk/core/libycp/src/YCPSymbol.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPSymbol.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPSymbol.cc (original)
+++ trunk/core/libycp/src/YCPSymbol.cc Thu May 26 18:26:27 2011
@@ -83,7 +83,7 @@
}
std::ostream &
-YCPSymbolRep::toXml (std::ostream & str, int indent ) const
+YCPSymbolRep::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "";
return str;
Modified: trunk/core/libycp/src/YCPVoid.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPVoid.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPVoid.cc (original)
+++ trunk/core/libycp/src/YCPVoid.cc Thu May 26 18:26:27 2011
@@ -59,7 +59,7 @@
}
std::ostream &
-YCPVoidRep::toXml (std::ostream & str, int indent ) const
+YCPVoidRep::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
Modified: trunk/core/libycp/src/YCode.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCode.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YCode.cc (original)
+++ trunk/core/libycp/src/YCode.cc Thu May 26 18:26:27 2011
@@ -198,7 +198,7 @@
std::ostream &
-YCode::toXml (std::ostream & str, int indent ) const
+YCode::toXml (std::ostream & str, int /*indent*/ ) const
{
ykind k = kind ();
#if DO_DEBUG
@@ -403,7 +403,7 @@
}
std::ostream &
-YConst::toXml (std::ostream & str, int indent ) const
+YConst::toXml (std::ostream & str, int /*indent*/ ) const
{
if (m_kind == ycConstant) {
y2error ("Internal error, a constant not supposed to be written to xml");
@@ -509,7 +509,7 @@
// see also YELocale::toXml
std::ostream &
-YLocale::toXml (std::ostream & str, int indent ) const
+YLocale::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "first << "\" text=\"" << Xmlcode::xmlify( m_locale ) << "\"/>";
return str;
@@ -781,7 +781,7 @@
std::ostream &
-YFunction::toXmlDefinition (std::ostream & str, int indent ) const
+YFunction::toXmlDefinition (std::ostream & str, int /*indent*/ ) const
{
// see toXml(...)
return str;
Modified: trunk/core/libycp/src/YExpression.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YExpression.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YExpression.cc (original)
+++ trunk/core/libycp/src/YExpression.cc Thu May 26 18:26:27 2011
@@ -145,7 +145,7 @@
}
std::ostream &
-YEVariable::toXml( std::ostream & str, int indent ) const
+YEVariable::toXml( std::ostream & str, int /*indent*/ ) const
{
str << "toString (false /*definition*/);
@@ -217,7 +217,7 @@
std::ostream &
-YEReference::toXml (std::ostream & str, int indent ) const
+YEReference::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "<yereference>";
Xmlcode::writeEntry (str, m_entry);
@@ -388,7 +388,7 @@
}
std::ostream &
-YETerm::toXml (std::ostream & str, int indent ) const
+YETerm::toXml (std::ostream & str, int /*indent*/ ) const
{
u_int32_t count = 0;
const ycodelist_t *codep = m_parameters;
@@ -533,7 +533,7 @@
std::ostream &
-YECompare::toXml (std::ostream & str, int indent ) const
+YECompare::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "";
str << "<lhs>"; m_left->toXml( str, 0 ); str << "</lhs>";
@@ -646,7 +646,7 @@
// see also YLocale::toXml
std::ostream &
-YELocale::toXml (std::ostream & str, int indent ) const
+YELocale::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "first << "\" text=\"" << Xmlcode::xmlify( m_singular )
<< "\" plural=\"" << Xmlcode::xmlify( m_plural ) << "\">";
@@ -790,7 +790,7 @@
std::ostream &
-YEList::toXml (std::ostream & str, int indent ) const
+YEList::toXml (std::ostream & str, int /*indent*/ ) const
{
u_int32_t count = 0;
const ycodelist_t *codep = m_first;
@@ -965,7 +965,7 @@
std::ostream &
-YEMap::toXml( std::ostream & str, int indent ) const
+YEMap::toXml( std::ostream & str, int /*indent*/ ) const
{
mapval_t *mapp = m_first;
u_int32_t count = 0;
@@ -1197,7 +1197,7 @@
}
std::ostream &
-YEPropagate::toXml (std::ostream & str, int indent ) const
+YEPropagate::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "toString() ) << "\" to=\"" << Xmlcode::xmlify( m_to->toString() ) << "\">";
m_value->toXml( str, 0 );
@@ -1297,7 +1297,7 @@
std::ostream &
-YEUnary::toXml (std::ostream & str, int indent ) const
+YEUnary::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "toXml( str, 0); str << "</cond>";
@@ -1638,7 +1638,7 @@
std::ostream &
-YEIs::toXml (std::ostream & str, int indent ) const
+YEIs::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "toXml( str, 0); str << ">";
str << "<expr>"; m_expr->toXml( str, 0); str << "</expr>";
@@ -1693,7 +1693,7 @@
}
std::ostream &
-YEReturn::toXml (std::ostream & str, int indent ) const
+YEReturn::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "<yereturn>";
m_expr->toXml( str, 0 );
@@ -1864,7 +1864,7 @@
std::ostream &
-YEBracket::toXml (std::ostream & str, int indent ) const
+YEBracket::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "toXml( str, 0);
@@ -2991,7 +2991,7 @@
std::ostream &
-YECall::toXml (std::ostream & str, int indent ) const
+YECall::toXml (std::ostream & str, int /*indent*/ ) const
{
str << "nameSpace()->name().empty()) {
Modified: trunk/core/libycp/src/YStatement.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YStatement.cc?rev=64123&r1=64122&r2=64123&view=diff
==============================================================================
--- trunk/core/libycp/src/YStatement.cc (original)
+++ trunk/core/libycp/src/YStatement.cc Thu May 26 18:26:27 2011
@@ -116,7 +116,7 @@
}
std::ostream &
-YStatement::toXml( std::ostream & str, int indent ) const
+YStatement::toXml( std::ostream & str, int /*indent*/ ) const
{
return str << "<statement line=" << m_line << "/>";
}
@@ -160,7 +160,7 @@
}
std::ostream &
-YSBreak::toXml (std::ostream & str, int indent ) const
+YSBreak::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "<break/>";
}
@@ -204,7 +204,7 @@
}
std::ostream &
-YSContinue::toXml (std::ostream & str, int indent ) const
+YSContinue::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "<continue/>";
}
@@ -571,7 +571,7 @@
std::ostream &
-YSTypedef::toXml( std::ostream & str, int indent ) const
+YSTypedef::toXml( std::ostream & str, int /*indent*/ ) const
{
str << "toXml( str, 0 );
@@ -635,7 +635,7 @@
std::ostream &
-YSAssign::toXml( std::ostream & str, int indent ) const
+YSAssign::toXml( std::ostream & str, int /*indent*/ ) const
{
str << "toString (false /*definition*/) << "\">";
m_code->toXml( str, 0 );
@@ -1553,7 +1553,7 @@
std::ostream &
-YSTextdomain::toXml (std::ostream & str, int indent ) const
+YSTextdomain::toXml (std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
@@ -1616,7 +1616,7 @@
std::ostream &
-YSInclude::toXml( std::ostream & str, int indent ) const
+YSInclude::toXml( std::ostream & str, int /*indent*/ ) const
{
str << "";
@@ -1838,7 +1838,7 @@
std::ostream &
-YSFilename::toXml(std::ostream & str, int indent ) const
+YSFilename::toXml(std::ostream & str, int /*indent*/ ) const
{
return str << "";
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org