Ticket #9882: 0001-date_time-GCC-Wshadow-warning-fixes.patch

File 0001-date_time-GCC-Wshadow-warning-fixes.patch, 1.5 KB (added by mstahl@…, 9 years ago)
  • include/boost/date_time/date_names_put.hpp

    From b32d86e4410a33fff8da6d72405ffc1e0fa0eb41 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
    Date: Sat, 12 Apr 2014 00:52:10 +0200
    Subject: [PATCH 1/2] date_time: GCC -Wshadow warning fixes
    
    Signed-off-by: Michael Stahl <mstahl@redhat.com>
    ---
     include/boost/date_time/date_names_put.hpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/include/boost/date_time/date_names_put.hpp b/include/boost/date_time/date_names_put.hpp
    index e055fa8..193ed7e 100644
    a b namespace date_time {  
    218218                         const charT* const weekday_long_names[],
    219219                         charT separator_char = '-',
    220220                         ymd_order_spec order_spec = ymd_order_iso,
    221                          month_format_spec month_format = month_as_short_string) :
     221                         month_format_spec month_format_ = month_as_short_string) :
    222222        month_short_names_(month_short_names),
    223223        month_long_names_(month_long_names),
    224224        special_value_names_(special_value_names),
    225225        weekday_short_names_(weekday_short_names),
    226226        weekday_long_names_(weekday_long_names),
    227227        order_spec_(order_spec),
    228         month_format_spec_(month_format)
     228        month_format_spec_(month_format_)
    229229      {
    230230        separator_char_[0] = separator_char;
    231231        separator_char_[1] = '\0';