Avoid problems with Doxygen by adding warn_unused_result attribute at the end of method signatures

This commit is contained in:
Tobias Brunner
2012-08-11 16:48:09 +02:00
parent 2c93a214aa
commit 3b891b9e5b
9 changed files with 57 additions and 61 deletions
+3 -4
View File
@@ -47,9 +47,8 @@ struct aead_t {
* @param encrypted allocated encryption result
* @return TRUE if successfully encrypted
*/
__attribute__((warn_unused_result))
bool (*encrypt)(aead_t *this, chunk_t plain, chunk_t assoc, chunk_t iv,
chunk_t *encrypted);
chunk_t *encrypted) __attribute__((warn_unused_result));
/**
* Decrypt and verify data, verify associated data.
@@ -102,8 +101,8 @@ struct aead_t {
* @param key encryption and authentication key
* @return TRUE if key set successfully
*/
__attribute__((warn_unused_result))
bool (*set_key)(aead_t *this, chunk_t key);
bool (*set_key)(aead_t *this,
chunk_t key) __attribute__((warn_unused_result));
/**
* Destroy a aead_t.