]> granicus.if.org Git - clang/commitdiff
Remove a 'static' specifier from an 'inline' function in a header file.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 20 Jun 2012 08:43:50 +0000 (08:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 20 Jun 2012 08:43:50 +0000 (08:43 +0000)
This issue was caught by the new '-Winternal-linkage-in-inline' warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158801 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Linkage.h

index 09a5a0b6b1f36167d6e44162a4fe85f8d207934f..6822b442e35efc73c8dd011ff8037bb694840522 100644 (file)
@@ -59,7 +59,7 @@ inline bool isExternalLinkage(Linkage L) {
 }
 
 /// \brief Compute the minimum linkage given two linages.
-static inline Linkage minLinkage(Linkage L1, Linkage L2) {
+inline Linkage minLinkage(Linkage L1, Linkage L2) {
   return L1 < L2? L1 : L2;
 }