Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: C standard requires prototype #806

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/aws/cryptosdk/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ enum aws_cryptosdk_err {
* Implicitly registers error strings for aws-c-common as well.
*/
AWS_CRYPTOSDK_API
void aws_cryptosdk_load_error_strings();
void aws_cryptosdk_load_error_strings(void);

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion source/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static int evp_gcm_encrypt_final(const struct aws_cryptosdk_alg_properties *prop
return AWS_ERROR_SUCCESS;
}

static inline void flush_openssl_errors() {
static inline void flush_openssl_errors(void) {
while (ERR_get_error() != 0) {
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ static const struct aws_error_info error_info[] = {
static const struct aws_error_info_list error_info_list = { .error_list = error_info,
.count = sizeof(error_info) / sizeof(error_info[0]) };

void aws_cryptosdk_load_error_strings() {
void aws_cryptosdk_load_error_strings(void) {
aws_register_error_info(&error_info_list);
}
Loading