[libcxx] r255599 - Mark declarations of externally instantiated functions as inline so GCC doesn't complain.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 14 17:41:43 PST 2015
Author: ericwf
Date: Mon Dec 14 19:41:41 2015
New Revision: 255599
URL: http://llvm.org/viewvc/llvm-project?rev=255599&view=rev
Log:
Mark declarations of externally instantiated functions as inline so GCC doesn't complain.
Modified:
libcxx/trunk/include/valarray
Modified: libcxx/trunk/include/valarray
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/valarray?rev=255599&r1=255598&r2=255599&view=diff
==============================================================================
--- libcxx/trunk/include/valarray (original)
+++ libcxx/trunk/include/valarray Mon Dec 14 19:41:41 2015
@@ -803,7 +803,7 @@ public:
_LIBCPP_INLINE_VISIBILITY
valarray() : __begin_(0), __end_(0) {}
_LIBCPP_INLINE_VISIBILITY
- explicit valarray(size_t __n);
+ inline explicit valarray(size_t __n);
_LIBCPP_INLINE_VISIBILITY
valarray(const value_type& __x, size_t __n);
valarray(const value_type* __p, size_t __n);
@@ -819,7 +819,7 @@ public:
valarray(const gslice_array<value_type>& __ga);
valarray(const mask_array<value_type>& __ma);
valarray(const indirect_array<value_type>& __ia);
- _LIBCPP_INLINE_VISIBILITY
+ inline _LIBCPP_INLINE_VISIBILITY
~valarray();
// assignment:
More information about the cfe-commits
mailing list