[cfe-commits] r158801 - /cfe/trunk/include/clang/Basic/Linkage.h
Chandler Carruth
chandlerc at gmail.com
Wed Jun 20 01:43:50 PDT 2012
Author: chandlerc
Date: Wed Jun 20 03:43:50 2012
New Revision: 158801
URL: http://llvm.org/viewvc/llvm-project?rev=158801&view=rev
Log:
Remove a 'static' specifier from an 'inline' function in a header file.
This issue was caught by the new '-Winternal-linkage-in-inline' warning.
Modified:
cfe/trunk/include/clang/Basic/Linkage.h
Modified: cfe/trunk/include/clang/Basic/Linkage.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Linkage.h?rev=158801&r1=158800&r2=158801&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Linkage.h (original)
+++ cfe/trunk/include/clang/Basic/Linkage.h Wed Jun 20 03:43:50 2012
@@ -59,7 +59,7 @@
}
/// \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;
}
More information about the cfe-commits
mailing list