aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/tofuinfo.cpp
diff options
context:
space:
mode:
authorAndreas Stieger <[email protected]>2016-09-21 12:28:23 +0000
committerAndre Heinecke <[email protected]>2016-09-21 14:46:06 +0000
commitae324b51ffa338b891387bff2657d60c1fd3ae40 (patch)
tree8fbc4f8ca898fa10a293ba47020bc98c0d021613 /lang/cpp/src/tofuinfo.cpp
parentPost release updates (diff)
downloadgpgme-ae324b51ffa338b891387bff2657d60c1fd3ae40.tar.gz
gpgme-ae324b51ffa338b891387bff2657d60c1fd3ae40.zip
cpp: Avoid missing returns in non-void functions
* lang/cpp/src/context.cpp (Context::signaturePolicyURL): return nullptr on default (to_tofu_policy_t): add default case for unknown * lang/cpp/src/key.cpp (Key::primaryFingerprint): return nullptr on default * lang/cpp/src/tofuinfo.cpp (GpgME::TofuInfo::policy): add default case for unknown Signed-off-by: Andreas Stieger <[email protected]> Signed-off-by: Andre Heinecke <[email protected]>
Diffstat (limited to 'lang/cpp/src/tofuinfo.cpp')
-rw-r--r--lang/cpp/src/tofuinfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/tofuinfo.cpp b/lang/cpp/src/tofuinfo.cpp
index bb67fc8c..e661b3b1 100644
--- a/lang/cpp/src/tofuinfo.cpp
+++ b/lang/cpp/src/tofuinfo.cpp
@@ -109,6 +109,7 @@ GpgME::TofuInfo::Policy GpgME::TofuInfo::policy() const
case GPGME_TOFU_POLICY_ASK:
return PolicyAsk;
case GPGME_TOFU_POLICY_UNKNOWN:
+ default:
return PolicyUnknown;
}
}