aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_mac.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-28 19:56:29 -0500
committerJack Lloyd <[email protected]>2017-12-28 19:56:29 -0500
commitdfd25890cdd7c3c0148cd8101cab85539d87e475 (patch)
tree182a92d1995f2199775048755ef3d14c3bd477e4 /src/lib/ffi/ffi_mac.cpp
parent7500ed1eb1ecdb88d154ee1f50030a7e93733dc0 (diff)
Add explicit int return type declarations on FFI lambdas.
Sun Studio gives a strange warning about this. This probably doesn't help actually compile under Sun Studio. But it doesn't hurt to be explicit.
Diffstat (limited to 'src/lib/ffi/ffi_mac.cpp')
-rw-r--r--src/lib/ffi/ffi_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi_mac.cpp b/src/lib/ffi/ffi_mac.cpp
index b3237592f..22dbb2513 100644
--- a/src/lib/ffi/ffi_mac.cpp
+++ b/src/lib/ffi/ffi_mac.cpp
@@ -16,7 +16,7 @@ BOTAN_FFI_DECLARE_STRUCT(botan_mac_struct, Botan::MessageAuthenticationCode, 0xA
int botan_mac_init(botan_mac_t* mac, const char* mac_name, uint32_t flags)
{
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() {
+ return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
if(!mac || !mac_name || flags != 0)
return BOTAN_FFI_ERROR_NULL_POINTER;