PR libstdc++/65927 Fix -Wunused-but-set-parameter warning
authorJonathan Wakely <jwakely@redhat.com>
Thu, 30 Nov 2017 17:29:08 +0000 (17:29 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 30 Nov 2017 17:29:08 +0000 (17:29 +0000)
PR libstdc++/65927
* include/bits/locale_facets_nonio.h (__timepunct::_M_am_pm_format):
Remove statement with no effect.

From-SVN: r255278

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets_nonio.h

index 6c7c75f98d1fde1f76dcc1776519bcfef1b42dca..e25457812984e13c6b0d12f6395becc54bf0175c 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-30  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/65927
+       * include/bits/locale_facets_nonio.h (__timepunct::_M_am_pm_format):
+       Remove statement with no effect.
+
 2017-11-30  Glen Joseph Fernandes  <glenjofe@gmail.com>
 
        * include/bits/ptr_traits.h (__to_address, to_address): Move static
index 0068cd3adddaadba55a79fc0df7aa21d94de94f7..6747a25a263a918ea786defa0754e378caaf5a19 100644 (file)
@@ -236,9 +236,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        __dt[1] = _M_data->_M_date_time_era_format;
       }
 
+#if !_GLIBCXX_INLINE_VERSION
       void
-      _M_am_pm_format(const _CharT* __ampm) const
-      { __ampm = _M_data->_M_am_pm_format; }
+      _M_am_pm_format(const _CharT*) const
+      { /* Kept for ABI compatibility, see PR65927 */ }
+#endif
 
       void
       _M_am_pm(const _CharT** __ampm) const