From 30cb0a380c4d943f79d191ed0fb260619b6f504e Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Mon, 6 May 2019 06:42:06 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360012 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm-c/Error.h b/include/llvm-c/Error.h index 40ea1fb1ff8..52943063c69 100644 --- a/include/llvm-c/Error.h +++ b/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 } -- 2.50.1