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
+5 -5
View File
@@ -38,8 +38,8 @@ struct prf_plus_t {
* @param buffer pointer where the generated bytes will be written
* @return TRUE if bytes generated successfully
*/
__attribute__((warn_unused_result))
bool (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer);
bool (*get_bytes)(prf_plus_t *this, size_t length,
u_int8_t *buffer) __attribute__((warn_unused_result));
/**
* Allocate pseudo random bytes.
@@ -48,13 +48,13 @@ struct prf_plus_t {
* @param chunk chunk which will hold generated bytes
* @return TRUE if bytes allocated successfully
*/
__attribute__((warn_unused_result))
bool (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk);
bool (*allocate_bytes)(prf_plus_t *this, size_t length,
chunk_t *chunk) __attribute__((warn_unused_result));
/**
* Destroys a prf_plus_t object.
*/
void (*destroy) (prf_plus_t *this);
void (*destroy)(prf_plus_t *this);
};
/**