Ticket #7426: datetime-lib-warnings.diff

File datetime-lib-warnings.diff, 2.1 KB (added by Franz Detro <franz.detro@…>, 10 years ago)
  • libs/date_time/src/gregorian/greg_month.cpp

    From fd76bf7a7a52126ac11d59c599ffd32f90e5fa14 Mon Sep 17 00:00:00 2001
    From: Franz Detro <franz.detro@native-instruments.de>
    Date: Tue, 4 Sep 2012 15:21:54 +0200
    Subject: [PATCH] fix warnings in boost datetime (libs folder)
    
    ---
     libs/date_time/src/gregorian/greg_month.cpp | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/libs/date_time/src/gregorian/greg_month.cpp b/libs/date_time/src/gregorian/greg_month.cpp
    index 2d4f8e4..dec1c93 100644
    a b namespace gregorian {  
    108108   */
    109109  BOOST_DATE_TIME_DECL
    110110  boost::date_time::all_date_names_put<greg_facet_config, char>*
    111   create_facet_def(char type)
     111  create_facet_def(char)
    112112  {
    113113    typedef
    114114      boost::date_time::all_date_names_put<greg_facet_config, char> facet_def;
    namespace gregorian {  
    121121  }
    122122 
    123123  //! generates a locale with the set of gregorian name-strings of type char*
    124   BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, char type){
     124  BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, char){
    125125    typedef boost::date_time::all_date_names_put<greg_facet_config, char> facet_def;
    126126    return std::locale(loc, new facet_def(short_month_names,
    127127                                          long_month_names,
    namespace gregorian {  
    139139   */
    140140  BOOST_DATE_TIME_DECL
    141141  boost::date_time::all_date_names_put<greg_facet_config, wchar_t>*
    142   create_facet_def(wchar_t type)
     142  create_facet_def(wchar_t)
    143143  {
    144144    typedef
    145145      boost::date_time::all_date_names_put<greg_facet_config,wchar_t> facet_def;
    namespace gregorian {  
    152152  }
    153153
    154154  //! generates a locale with the set of gregorian name-strings of type wchar_t*
    155   BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, wchar_t type){
     155  BOOST_DATE_TIME_DECL std::locale generate_locale(std::locale& loc, wchar_t){
    156156    typedef boost::date_time::all_date_names_put<greg_facet_config, wchar_t> facet_def;
    157157    return std::locale(loc, new facet_def(w_short_month_names,
    158158                                          w_long_month_names,