aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/job_state.cc
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 /paludis/resolver/job_state.cc
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).
Diffstat (limited to 'paludis/resolver/job_state.cc')
-rw-r--r--paludis/resolver/job_state.cc25
1 files changed, 15 insertions, 10 deletions
diff --git a/paludis/resolver/job_state.cc b/paludis/resolver/job_state.cc
index af52d0efa..2d541bd56 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")
+ ;
}