Borland has warned me about unused variable row_qty in this code:

{
  wgint row_qty = ROW_BYTES;
  if (dp->rows == dp->initial_length / ROW_BYTES)
    row_qty -= dp->initial_length % ROW_BYTES;
  ... code that doesn't use row_qty ...
}

Does GCC have an option to produce such a warning?  -Wall doesn't, and
neither does -Wunused.  It seems that it's confused by the second
assignment, because if I comment it out, I get "warning: unused
variable `row_qty'".

Reply via email to