[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
This commit is contained in:
Anders Waldenborg 2019-05-06 06:42:06 +00:00
parent 2b45b267da
commit 4732d3abdf
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ void LLVMDisposeErrorMessage(char *ErrMsg);
/**
* Returns the type id for llvm StringError.
*/
LLVMErrorTypeId LLVMGetStringErrorTypeId();
LLVMErrorTypeId LLVMGetStringErrorTypeId(void);
#ifdef __cplusplus
}