diff options
author | Andreas Stieger <[email protected]> | 2016-09-21 12:28:23 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-09-21 14:46:06 +0000 |
commit | ae324b51ffa338b891387bff2657d60c1fd3ae40 (patch) | |
tree | 8fbc4f8ca898fa10a293ba47020bc98c0d021613 /lang/cpp/src/key.cpp | |
parent | Post release updates (diff) | |
download | gpgme-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/key.cpp')
-rw-r--r-- | lang/cpp/src/key.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp index cfa1ba31..a56f77ca 100644 --- a/lang/cpp/src/key.cpp +++ b/lang/cpp/src/key.cpp @@ -273,6 +273,7 @@ const char *Key::primaryFingerprint() const /* Return the first subkeys fingerprint */ return key->subkeys->fpr; } + return nullptr; } unsigned int Key::keyListMode() const |