Print this page
new smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/validation/constant-suffix-64.c
          +++ new/usr/src/tools/smatch/src/validation/constant-suffix-64.c
   1    1  #define BIGU 0xfffff00000000000U
   2    2  #define BIGUL 0xfffff00000000000UL
   3    3  
   4    4  static unsigned long a = BIGU;
   5    5  static unsigned long b = BIGUL;
   6    6  
   7    7  /*
   8    8   * check-name: constant-suffix
   9    9   * check-command: sparse -m64 -Wconstant-suffix $file
       10 + * check-assert: sizeof(long) == 8
  10   11   *
  11   12   * check-error-start
  12   13  constant-suffix-64.c:4:26: warning: constant 0xfffff00000000000U is so big it is unsigned long
  13   14   * check-error-end
  14   15   */
  15   16  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX