[PATCH] D61568: [llvm-c] Make LLVMGetStringErrorTypeId a proper prototype
Anders Waldenborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 06:59:25 PDT 2019
wanders created this revision.
Herald added a reviewer: deadalnix.
Herald added a project: LLVM.
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'
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D61568
Files:
llvm/include/llvm-c/Error.h
Index: llvm/include/llvm-c/Error.h
===================================================================
--- llvm/include/llvm-c/Error.h
+++ llvm/include/llvm-c/Error.h
@@ -60,7 +60,7 @@
/**
* Returns the type id for llvm StringError.
*/
-LLVMErrorTypeId LLVMGetStringErrorTypeId();
+LLVMErrorTypeId LLVMGetStringErrorTypeId(void);
#ifdef __cplusplus
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61568.198177.patch
Type: text/x-patch
Size: 360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190505/55386392/attachment.bin>
More information about the llvm-commits
mailing list