aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-02-26 20:11:50 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-03-02 08:59:14 -0800
commit3b73c42b7a5d29758a7e42fa5c6a4aa997586b88 (patch)
tree4287c31fc45180905038b76cf3aa47277bd804f2
parentdd4d716deb18da1f4336d88e8007456ab4d31303 (diff)
downloadpaludis-3b73c42b7a5d29758a7e42fa5c6a4aa997586b88.tar.gz
paludis-3b73c42b7a5d29758a7e42fa5c6a4aa997586b88.tar.xz
silence ignored value warnings
The methods are explicitly tagged to warn if the return value is ignored. Silence the warning by simply storing the value (which the compiler will hopefully discard).
-rw-r--r--paludis/resolver/job_state.cc25
-rw-r--r--paludis/resolver/required_confirmations.cc30
2 files changed, 33 insertions, 22 deletions
diff --git a/paludis/resolver/job_state.cc b/paludis/resolver/job_state.cc
index af52d0e..2d541bd 100644
--- a/paludis/resolver/job_state.cc
+++ b/paludis/resolver/job_state.cc
@@ -87,8 +87,9 @@ JobPendingState::deserialise(Deserialisation & d)
void
JobPendingState::serialise(Serialiser & s) const
{
- s.object("JobPendingState")
- ;
+ SerialiserObjectWriter writer =
+ s.object("JobPendingState")
+ ;
}
const std::shared_ptr<JobSkippedState>
@@ -101,8 +102,9 @@ JobSkippedState::deserialise(Deserialisation & d)
void
JobSkippedState::serialise(Serialiser & s) const
{
- s.object("JobSkippedState")
- ;
+ SerialiserObjectWriter writer =
+ s.object("JobSkippedState")
+ ;
}
JobActiveState::JobActiveState() :
@@ -148,8 +150,9 @@ JobActiveState::deserialise(Deserialisation & d)
void
JobActiveState::serialise(Serialiser & s) const
{
- s.object("JobActiveState")
- ;
+ SerialiserObjectWriter writer =
+ s.object("JobActiveState")
+ ;
}
JobSucceededState::JobSucceededState(const std::shared_ptr<OutputManager> & m) :
@@ -177,8 +180,9 @@ JobSucceededState::deserialise(Deserialisation & d)
void
JobSucceededState::serialise(Serialiser & s) const
{
- s.object("JobSucceededState")
- ;
+ SerialiserObjectWriter writer =
+ s.object("JobSucceededState")
+ ;
}
JobFailedState::JobFailedState(const std::shared_ptr<OutputManager> & m) :
@@ -206,7 +210,8 @@ JobFailedState::deserialise(Deserialisation & d)
void
JobFailedState::serialise(Serialiser & s) const
{
- s.object("JobFailedState")
- ;
+ SerialiserObjectWriter writer =
+ s.object("JobFailedState")
+ ;
}
diff --git a/paludis/resolver/required_confirmations.cc b/paludis/resolver/required_confirmations.cc
index d8d9343..18d1e74 100644
--- a/paludis/resolver/required_confirmations.cc
+++ b/paludis/resolver/required_confirmations.cc
@@ -55,8 +55,9 @@ DowngradeConfirmation::deserialise(Deserialisation & d)
void
DowngradeConfirmation::serialise(Serialiser & s) const
{
- s.object("DowngradeConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("DowngradeConfirmation")
+ ;
}
const std::shared_ptr<NotBestConfirmation>
@@ -69,8 +70,9 @@ NotBestConfirmation::deserialise(Deserialisation & d)
void
NotBestConfirmation::serialise(Serialiser & s) const
{
- s.object("NotBestConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("NotBestConfirmation")
+ ;
}
const std::shared_ptr<BreakConfirmation>
@@ -83,8 +85,9 @@ BreakConfirmation::deserialise(Deserialisation & d)
void
BreakConfirmation::serialise(Serialiser & s) const
{
- s.object("BreakConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("BreakConfirmation")
+ ;
}
const std::shared_ptr<RemoveSystemPackageConfirmation>
@@ -97,8 +100,9 @@ RemoveSystemPackageConfirmation::deserialise(Deserialisation & d)
void
RemoveSystemPackageConfirmation::serialise(Serialiser & s) const
{
- s.object("RemoveSystemPackageConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("RemoveSystemPackageConfirmation")
+ ;
}
const std::shared_ptr<MaskedConfirmation>
@@ -111,8 +115,9 @@ MaskedConfirmation::deserialise(Deserialisation & d)
void
MaskedConfirmation::serialise(Serialiser & s) const
{
- s.object("MaskedConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("MaskedConfirmation")
+ ;
}
const std::shared_ptr<ChangedChoicesConfirmation>
@@ -125,8 +130,9 @@ ChangedChoicesConfirmation::deserialise(Deserialisation & d)
void
ChangedChoicesConfirmation::serialise(Serialiser & s) const
{
- s.object("ChangedChoicesConfirmation")
- ;
+ SerialiserObjectWriter writer =
+ s.object("ChangedChoicesConfirmation")
+ ;
}
namespace paludis