[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bc7259f 6/6: Make stifle_unused_warning() con
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bc7259f 6/6: Make stifle_unused_warning() constexpr |
Date: |
Wed, 27 Oct 2021 18:22:22 -0400 (EDT) |
branch: master
commit bc7259fbe4fa66c753995793e8b6b917898feba2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Make stifle_unused_warning() constexpr
See:
https://lists.nongnu.org/archive/html/lmi/2021-04/msg00060.html
---
miscellany.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/miscellany.hpp b/miscellany.hpp
index 362ac3a..3db0106 100644
--- a/miscellany.hpp
+++ b/miscellany.hpp
@@ -293,7 +293,7 @@ inline unsigned char lmi_toupper(unsigned char c)
/// Avoid compiler warning for unused variable or unused value.
template<typename T>
-inline void stifle_unused_warning(T const&)
+constexpr void stifle_unused_warning(T const&)
{}
#endif // miscellany_hpp
- [lmi-commits] [lmi] master updated (f43af72 -> bc7259f), Greg Chicares, 2021/10/27
- [lmi-commits] [lmi] master e1482a3 5/6: Add unit tests for stifle_unused_warning(), Greg Chicares, 2021/10/27
- [lmi-commits] [lmi] master bc7259f 6/6: Make stifle_unused_warning() constexpr,
Greg Chicares <=
- [lmi-commits] [lmi] master be063aa 4/6: Merge "stifle" function templates, Greg Chicares, 2021/10/27
- [lmi-commits] [lmi] master 7f3f9c8 1/6: Clarify, Greg Chicares, 2021/10/27
- [lmi-commits] [lmi] master de0234e 3/6: Use std::fabs as appropriate in f2c-translated code, Greg Chicares, 2021/10/27
- [lmi-commits] [lmi] master 3899747 2/6: Avoid ambiguous abbreviations, Greg Chicares, 2021/10/27