[llvm] r360012 - [llvm-c] Make LLVMGetStringErrorTypeId a proper prototype
Anders Waldenborg via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 23:42:06 PDT 2019
Author: andersg
Date: Sun May 5 23:42:06 2019
New Revision: 360012
URL: http://llvm.org/viewvc/llvm-project?rev=360012&view=rev
Log:
[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
Modified:
llvm/trunk/include/llvm-c/Error.h
Modified: llvm/trunk/include/llvm-c/Error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Error.h?rev=360012&r1=360011&r2=360012&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Error.h (original)
+++ llvm/trunk/include/llvm-c/Error.h Sun May 5 23:42:06 2019
@@ -60,7 +60,7 @@ void LLVMDisposeErrorMessage(char *ErrMs
/**
* Returns the type id for llvm StringError.
*/
-LLVMErrorTypeId LLVMGetStringErrorTypeId();
+LLVMErrorTypeId LLVMGetStringErrorTypeId(void);
#ifdef __cplusplus
}
More information about the llvm-commits
mailing list