diff options
author | Anders Waldenborg <anders@0x63.nu> | 2019-05-06 06:42:06 +0000 |
---|---|---|
committer | Anders Waldenborg <anders@0x63.nu> | 2019-05-06 06:42:06 +0000 |
commit | 4732d3abdf078f4a1381edb2acb2a2b73e2636b9 (patch) | |
tree | 7f73ff636643d20e4a225b09d6ecb5f87616eed1 /llvm/include/llvm-c/Error.h | |
parent | 2b45b267dab44442dbe68708be54e7d85e1b04dd (diff) | |
download | bcm5719-llvm-4732d3abdf078f4a1381edb2acb2a2b73e2636b9.tar.gz bcm5719-llvm-4732d3abdf078f4a1381edb2acb2a2b73e2636b9.zip |
[llvm-c] Make LLVMGetStringErrorTypeId a proper prototype
In C a function declaration with an empty argument list isn't a real
prototype, it will allow calling the function with any number of
arguments. It will also cause warnings when used in C code compiled with
'-Wstrict-prototypes'
Reviewed By: whitequark
Differential Revision: https://reviews.llvm.org/D61568
llvm-svn: 360012
Diffstat (limited to 'llvm/include/llvm-c/Error.h')
-rw-r--r-- | llvm/include/llvm-c/Error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/Error.h b/llvm/include/llvm-c/Error.h index 40ea1fb1ff8..52943063c69 100644 --- a/llvm/include/llvm-c/Error.h +++ b/llvm/include/llvm-c/Error.h @@ -60,7 +60,7 @@ void LLVMDisposeErrorMessage(char *ErrMsg); /** * Returns the type id for llvm StringError. */ -LLVMErrorTypeId LLVMGetStringErrorTypeId(); +LLVMErrorTypeId LLVMGetStringErrorTypeId(void); #ifdef __cplusplus } |