]> granicus.if.org Git - llvm/commitdiff
Change () to (void) in the C API.
authorAmaury Sechet <deadalnix@gmail.com>
Sun, 12 Jun 2016 07:56:21 +0000 (07:56 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Sun, 12 Jun 2016 07:56:21 +0000 (07:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272506 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Core.h
lib/IR/Core.cpp

index 3db6f36b3af575e52ae99c35e7a384d0ea87592d..3d1ebc531c84a88e3a29a87721a257df5da32fd9 100644 (file)
@@ -502,7 +502,7 @@ unsigned LLVMGetMDKindID(const char *Name, unsigned SLen);
  * going through the C API deprecation cycle.
  */
 unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen);
-unsigned LLVMGetLastEnumAttributeKind();
+unsigned LLVMGetLastEnumAttributeKind(void);
 
 /**
  * Create an enum attribute.
index 1dbdccb794a3037aab340c973998b61ca2b09310..380fca8c10f7c27068b57af29b3ecd39fd5041de 100644 (file)
@@ -128,7 +128,7 @@ unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen) {
   return getAttrKindFromName(StringRef(Name, SLen));
 }
 
-unsigned LLVMGetLastEnumAttributeKind() {
+unsigned LLVMGetLastEnumAttributeKind(void) {
   return Attribute::AttrKind::EndAttrKinds;
 }