[llvm] r272506 - Change () to (void) in the C API.

Amaury Sechet via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 12 00:56:22 PDT 2016


Author: deadalnix
Date: Sun Jun 12 02:56:21 2016
New Revision: 272506

URL: http://llvm.org/viewvc/llvm-project?rev=272506&view=rev
Log:
Change () to (void) in the C API.

Modified:
    llvm/trunk/include/llvm-c/Core.h
    llvm/trunk/lib/IR/Core.cpp

Modified: llvm/trunk/include/llvm-c/Core.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Core.h?rev=272506&r1=272505&r2=272506&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Core.h (original)
+++ llvm/trunk/include/llvm-c/Core.h Sun Jun 12 02:56:21 2016
@@ -502,7 +502,7 @@ unsigned LLVMGetMDKindID(const char *Nam
  * going through the C API deprecation cycle.
  */
 unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen);
-unsigned LLVMGetLastEnumAttributeKind();
+unsigned LLVMGetLastEnumAttributeKind(void);
 
 /**
  * Create an enum attribute.

Modified: llvm/trunk/lib/IR/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Core.cpp?rev=272506&r1=272505&r2=272506&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Core.cpp (original)
+++ llvm/trunk/lib/IR/Core.cpp Sun Jun 12 02:56:21 2016
@@ -128,7 +128,7 @@ unsigned LLVMGetEnumAttributeKindForName
   return getAttrKindFromName(StringRef(Name, SLen));
 }
 
-unsigned LLVMGetLastEnumAttributeKind() {
+unsigned LLVMGetLastEnumAttributeKind(void) {
   return Attribute::AttrKind::EndAttrKinds;
 }
 




More information about the llvm-commits mailing list