aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2018-06-25 17:57:03 +0200
committerHubert Chathi <hubert@uhoreg.ca>2018-06-27 12:25:27 -0400
commit9d81046f90b4afba7e71b86c564cae07daab61ad (patch)
treed5d3f47faaeeeaa64858c4867a2aea56d21fcbd3 /include
parentddc981c475ba576ae22617886ac6ce6d22ba1fc6 (diff)
Fix warnings reported by LLVM
Diffstat (limited to 'include')
-rw-r--r--include/olm/inbound_group_session.h2
-rw-r--r--include/olm/olm.h8
-rw-r--r--include/olm/outbound_group_session.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/include/olm/inbound_group_session.h b/include/olm/inbound_group_session.h
index ef01038..9b2f9df 100644
--- a/include/olm/inbound_group_session.h
+++ b/include/olm/inbound_group_session.h
@@ -25,7 +25,7 @@ extern "C" {
typedef struct OlmInboundGroupSession OlmInboundGroupSession;
/** get the size of an inbound group session, in bytes. */
-size_t olm_inbound_group_session_size();
+size_t olm_inbound_group_session_size(void);
/**
* Initialise an inbound group session object using the supplied memory
diff --git a/include/olm/olm.h b/include/olm/olm.h
index 5764eb2..838d817 100644
--- a/include/olm/olm.h
+++ b/include/olm/olm.h
@@ -39,13 +39,13 @@ typedef struct OlmUtility OlmUtility;
void olm_get_library_version(uint8_t *major, uint8_t *minor, uint8_t *patch);
/** The size of an account object in bytes */
-size_t olm_account_size();
+size_t olm_account_size(void);
/** The size of a session object in bytes */
-size_t olm_session_size();
+size_t olm_session_size(void);
/** The size of a utility object in bytes */
-size_t olm_utility_size();
+size_t olm_utility_size(void);
/** Initialise an account object using the supplied memory
* The supplied memory must be at least olm_account_size() bytes */
@@ -66,7 +66,7 @@ OlmUtility * olm_utility(
);
/** The value that olm will return from a function if there was an error */
-size_t olm_error();
+size_t olm_error(void);
/** A null terminated string describing the most recent error to happen to an
* account */
diff --git a/include/olm/outbound_group_session.h b/include/olm/outbound_group_session.h
index 663f1d2..eafaf80 100644
--- a/include/olm/outbound_group_session.h
+++ b/include/olm/outbound_group_session.h
@@ -25,7 +25,7 @@ extern "C" {
typedef struct OlmOutboundGroupSession OlmOutboundGroupSession;
/** get the size of an outbound group session, in bytes. */
-size_t olm_outbound_group_session_size();
+size_t olm_outbound_group_session_size(void);
/**
* Initialise an outbound group session object using the supplied memory