aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-01-08 21:45:48 +0100
committerDaniel Neus <[email protected]>2016-01-08 21:45:48 +0100
commit401db82da42117744cede7ce1888d76f98072bcd (patch)
tree55c7c5d79152402afcebfeb927e61e8c9422a078 /src/lib/utils
parent805c391817f22681ca9f09d7b04475f7cd9d34e7 (diff)
add BOTAN_NORETURN macro and mark those functions that do not return with it
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/assert.h2
-rw-r--r--src/lib/utils/http_util/http_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/assert.h b/src/lib/utils/assert.h
index 97924174e..8dc9f2b99 100644
--- a/src/lib/utils/assert.h
+++ b/src/lib/utils/assert.h
@@ -19,7 +19,7 @@ void BOTAN_DLL assertion_failure(const char* expr_str,
const char* assertion_made,
const char* func,
const char* file,
- int line);
+ int line) BOTAN_NORETURN;
/**
* Make an assertion
diff --git a/src/lib/utils/http_util/http_util.h b/src/lib/utils/http_util/http_util.h
index 6688285c6..766ea4f6c 100644
--- a/src/lib/utils/http_util/http_util.h
+++ b/src/lib/utils/http_util/http_util.h
@@ -64,7 +64,7 @@ std::string BOTAN_DLL http_transact_asio(const std::string& hostname,
#endif
std::string BOTAN_DLL http_transact_fail(const std::string& hostname,
- const std::string& message);
+ const std::string& message) BOTAN_NORETURN;
BOTAN_DLL Response http_sync(http_exch_fn fn,