[BACK]Return to tree.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/xlint/lint1/tree.c between version 1.90 and 1.91

version 1.90, 2020/12/28 18:49:02 version 1.91, 2020/12/28 19:02:16
Line 1991  cvtcon(op_t op, int arg, type_t *tp, val
Line 1991  cvtcon(op_t op, int arg, type_t *tp, val
                                 LERROR("cvtcon()");                                  LERROR("cvtcon()");
                         if (op == FARG) {                          if (op == FARG) {
                                 /* conv. of %s to %s is out of rng., arg #%d */                                  /* conv. of %s to %s is out of rng., arg #%d */
                                 warning(295, tyname(lbuf, sizeof(lbuf),                                  warning(295,
                                     gettyp(ot)), tyname(rbuf, sizeof(rbuf), tp),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                       tyname(rbuf, sizeof(rbuf), tp),
                                     arg);                                      arg);
                         } else {                          } else {
                                 /* conversion of %s to %s is out of range */                                  /* conversion of %s to %s is out of range */
                                 warning(119, tyname(lbuf, sizeof(lbuf),                                  warning(119,
                                     gettyp(ot)),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                     tyname(rbuf, sizeof(rbuf), tp));                                      tyname(rbuf, sizeof(rbuf), tp));
                         }                          }
                         v->v_ldbl = v->v_ldbl > 0 ? max : min;                          v->v_ldbl = v->v_ldbl > 0 ? max : min;
Line 2085  cvtcon(op_t op, int arg, type_t *tp, val
Line 2086  cvtcon(op_t op, int arg, type_t *tp, val
                                  * extra bits set to 0 in conversion                                   * extra bits set to 0 in conversion
                                  * of '%s' to '%s', op %s                                   * of '%s' to '%s', op %s
                                  */                                   */
                                 warning(309, tyname(lbuf, sizeof(lbuf),                                  warning(309,
                                     gettyp(ot)), tyname(rbuf, sizeof(rbuf), tp),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                       tyname(rbuf, sizeof(rbuf), tp),
                                     modtab[op].m_name);                                      modtab[op].m_name);
                         } else if (nsz < osz &&                          } else if (nsz < osz &&
                                    (v->v_quad & xmask) != xmask &&                                     (v->v_quad & xmask) != xmask &&
Line 2148  cvtcon(op_t op, int arg, type_t *tp, val
Line 2150  cvtcon(op_t op, int arg, type_t *tp, val
                                 warning(196);                                  warning(196);
                         } else if (op == FARG) {                          } else if (op == FARG) {
                                 /* conv. of %s to %s is out of rng., arg #%d */                                  /* conv. of %s to %s is out of rng., arg #%d */
                                 warning(295, tyname(lbuf, sizeof(lbuf),                                  warning(295,
                                     gettyp(ot)), tyname(rbuf, sizeof(rbuf), tp),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                       tyname(rbuf, sizeof(rbuf), tp),
                                     arg);                                      arg);
                         } else {                          } else {
                                 /* conversion of %s to %s is out of range */                                  /* conversion of %s to %s is out of range */
                                 warning(119, tyname(lbuf, sizeof(lbuf),                                  warning(119,
                                     gettyp(ot)),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                     tyname(rbuf, sizeof(rbuf), tp));                                      tyname(rbuf, sizeof(rbuf), tp));
                         }                          }
                 } else if (nv->v_quad != v->v_quad) {                  } else if (nv->v_quad != v->v_quad) {
Line 2169  cvtcon(op_t op, int arg, type_t *tp, val
Line 2172  cvtcon(op_t op, int arg, type_t *tp, val
                                 warning(196);                                  warning(196);
                         } else if (op == FARG) {                          } else if (op == FARG) {
                                 /* conv. of %s to %s is out of rng., arg #%d */                                  /* conv. of %s to %s is out of rng., arg #%d */
                                 warning(295, tyname(lbuf, sizeof(lbuf),                                  warning(295,
                                     gettyp(ot)), tyname(rbuf, sizeof(rbuf), tp),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                       tyname(rbuf, sizeof(rbuf), tp),
                                     arg);                                      arg);
                         } else {                          } else {
                                 /* conversion of %s to %s is out of range */                                  /* conversion of %s to %s is out of range */
                                 warning(119, tyname(lbuf, sizeof(lbuf),                                  warning(119,
                                     gettyp(ot)),                                      tyname(lbuf, sizeof(lbuf), gettyp(ot)),
                                     tyname(rbuf, sizeof(rbuf), tp));                                      tyname(rbuf, sizeof(rbuf), tp));
                         }                          }
                 }                  }

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91

CVSweb <webmaster@jp.NetBSD.org>