Advertisement
xunzhang

Untitled

Dec 1st, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.85 KB | None | 0 0
  1. url.c:1564:69: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  2.                         pstate->cur_lineno = line_number ? line_number - 1 : (int64) - 1 << 63;
  3.                                                                              ~~~~~~~~~~~ ^
  4. heap.c:1615:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
  5.                 if ((relstorage == RELSTORAGE_PARQUET))
  6.                      ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
  7.  
  8. planner.c:679:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
  9.                         if ((resourceLife == QRL_ONCE)) {
  10.                              ~~~~~~~~~~~~~^~~~~~~~~~~
  11.  
  12. ./regc_locale.c:358:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  13.         return (c >= 0 && c <= UCHAR_MAX && isdigit((unsigned char) c));
  14.                 ~ ^  ~
  15. ./regc_locale.c:364:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  16.         return (c >= 0 && c <= UCHAR_MAX && isalpha((unsigned char) c));
  17.                 ~ ^  ~
  18. ./regc_locale.c:370:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  19.         return (c >= 0 && c <= UCHAR_MAX && isalnum((unsigned char) c));
  20.                 ~ ^  ~
  21. ./regc_locale.c:376:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  22.         return (c >= 0 && c <= UCHAR_MAX && isupper((unsigned char) c));
  23.                 ~ ^  ~
  24. ./regc_locale.c:382:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  25.         return (c >= 0 && c <= UCHAR_MAX && islower((unsigned char) c));
  26.                 ~ ^  ~
  27. ./regc_locale.c:388:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  28.         return (c >= 0 && c <= UCHAR_MAX && isgraph((unsigned char) c));
  29.                 ~ ^  ~
  30. ./regc_locale.c:394:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  31.         return (c >= 0 && c <= UCHAR_MAX && isprint((unsigned char) c));
  32.                 ~ ^  ~
  33. ./regc_locale.c:400:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  34.         return (c >= 0 && c <= UCHAR_MAX && ispunct((unsigned char) c));
  35.                 ~ ^  ~
  36. ./regc_locale.c:406:12: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  37.         return (c >= 0 && c <= UCHAR_MAX && isspace((unsigned char) c));
  38.                 ~ ^  ~
  39. ./regc_locale.c:412:8: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  40.         if (c >= 0 && c <= UCHAR_MAX)
  41.             ~ ^  ~
  42. ./regc_locale.c:420:8: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
  43.         if (c >= 0 && c <= UCHAR_MAX)
  44.             ~ ^  ~
  45. 11 warnings generated.
  46.  
  47. fe-exec.c:2389:13: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
  48.         if (status < 0 || status >= sizeof pgresStatus / sizeof pgresStatus[0])
  49.             ~~~~~~ ^ ~
  50.  
  51. /Users/wuhong/Desktop/2016-Pivotal/Code/github/incubator-hawq/src/bin/gpfdist/src/gpfdist/gpfdist.c:2515:41: warning: comparison of unsigned expression >= 0 is always true
  52.       [-Wtautological-compare]
  53.                 if (r->in.davailable - buf_space_left >= 0)
  54.                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~
  55.  
  56. pg_filesystem.c:387:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
  57.         if(ftype < 0 || ftype >= FSYS_FUNC_TOTALNUM)
  58.            ~~~~~ ^ ~
  59. pg_filesystem.c:397:11: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
  60.         if(ftype < 0 || ftype >= FSYS_FUNC_TOTALNUM)
  61.            ~~~~~ ^ ~
  62. 2 warnings generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement