diff options
author | Jack Lloyd <[email protected]> | 2017-12-28 19:56:29 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-28 19:56:29 -0500 |
commit | dfd25890cdd7c3c0148cd8101cab85539d87e475 (patch) | |
tree | 182a92d1995f2199775048755ef3d14c3bd477e4 /src/lib/ffi/ffi_mac.cpp | |
parent | 7500ed1eb1ecdb88d154ee1f50030a7e93733dc0 (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.cpp | 2 |
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; |