lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]