Print this page
NEX-6096 Enable compile warnings re. parentheses in smbsrv
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/tzfile.h
          +++ new/usr/src/uts/common/sys/tzfile.h
↓ open down ↓ 129 lines elided ↑ open up ↑
 130  130  #define TM_YEAR_BASE    1900
 131  131  
 132  132  #define EPOCH_YEAR      1970
 133  133  #define EPOCH_WDAY      TM_THURSDAY
 134  134  
 135  135  /*
 136  136   * Accurate only for the past couple of centuries;
 137  137   * that will probably do.
 138  138   */
 139  139  
 140      -#define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
      140 +#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
 141  141  
 142  142  /*
 143  143   * Use of the underscored variants may cause problems if you move your code to
 144  144   * certain System-V-based systems; for maximum portability, use the
 145  145   * underscore-free variants.  The underscored variants are provided for
 146  146   * backward compatibility only; they may disappear from future versions of
 147  147   * this file.
 148  148   */
 149  149  
 150  150  #define SECS_PER_MIN    SECSPERMIN
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX