--- parser3/src/classes/date.C 2024/11/10 20:33:21 1.119 +++ parser3/src/classes/date.C 2024/12/23 16:59:17 1.121 @@ -14,7 +14,7 @@ #include "pa_vtable.h" #include "pa_vbool.h" -volatile const char * IDENT_DATE_C="$Id: date.C,v 1.119 2024/11/10 20:33:21 moko Exp $" IDENT_PA_VDATE_H; +volatile const char * IDENT_DATE_C="$Id: date.C,v 1.121 2024/12/23 16:59:17 moko Exp $" IDENT_PA_VDATE_H; // class @@ -45,7 +45,7 @@ public: static Table &date_calendar_table_template(){ static Table *singleton=NULL; - if(singleton==NULL) + if(!singleton) singleton=new Table(new Date_calendar_table_template_columns); return *singleton; } @@ -197,7 +197,8 @@ tm cstr_to_time_t(char *cstr, const char char *cur=cstr; const char *year, *month, *mday; - const char *hour, *min, *sec, *msec PA_ATTR_UNUSED; + const char *hour, *min, *sec; + PA_UNUSED const char *msec; year=skip_number(&cur, "-:", &delim); if(delim != ':' || delim == ':' && strlen(year) >=4 ){