From: Chandler Carruth Date: Wed, 20 Jun 2012 08:43:50 +0000 (+0000) Subject: Remove a 'static' specifier from an 'inline' function in a header file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10663399b1d4663e8b140eb12d9aa351be147c55;p=clang Remove a 'static' specifier from an 'inline' function in a header file. 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 --- diff --git a/include/clang/Basic/Linkage.h b/include/clang/Basic/Linkage.h index 09a5a0b6b1..6822b442e3 100644 --- a/include/clang/Basic/Linkage.h +++ b/include/clang/Basic/Linkage.h @@ -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; }