You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Paul Sutton <pa...@ukweb.com> on 1996/11/28 11:38:00 UTC

irix compile warning

Irix doesn't like this line bit of get_gmtoff() in util.c:

  #if !defined(HAS_GMTOFF)
    struct tm gmt = *gmtime(&tt);
  #endif

(the warning is "Warning 851: util.c, line 109: constant initializer
expression is invalid (refers to automatic variables).") 

Wouldn't it be better to declare gmt as a (struct tm *) instead of (struct
tm) anyway? That is how the localtime is obtained in the same function: 

  struct tm *t = localtime(&tt);

//pcs
UK Web Ltd