Ignore:
Timestamp:
Oct 25, 2014, 7:11:49 PM (11 years ago)
Author:
bird
Message:

trunk,0.6: Reduce stabs -> hll conversion warnings to a single warning per file by default, use new '-v' option to get all warnings and '-q' to shut them up completely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/emx/src/emxomf/emxomf.c

    r3919 r3920  
    197197   of the input file or a library name plus module name:
    198198   library(module). */
    199 static const char *error_fname;
     199const char *error_fname;
    200200
    201201/* The output directory.  This is set by the -O option. */
     
    405405static int unknown_stabs = FALSE;
    406406
    407 /* Supress certain warnings if this variable is TRUE (-q option). */
    408 static int quiet = FALSE;
     407/* Warning level (-q & -v options). */
     408int warning_level = 1;
    409409
    410410/* The libreq_head variable contains a pointer to the head of the list
     
    603603        {
    604604          s_pszComplainedFor = error_fname;
    605           warning ("Input file '%s' has more HLL debug types than we can index in PUBDEF and EXTDEF records.", error_fname);
     605          if (warning_level >= 1)
     606            warning("Input file '%s' has more HLL debug types than we can index in PUBDEF and EXTDEF records.",
     607                    error_fname);
    606608        }
    607609      hll_type = 0;
     
    18461848            {
    18471849              ok = FALSE;
    1848               if (!quiet)
     1850              if (warning_level > 0)
    18491851                warning ("Internal PC-relative relocation ignored");
    18501852            }
     
    42404242        break;
    42414243      case 'q':
    4242         quiet = TRUE;
     4244        warning_level--;
    42434245        break;
    42444246      case 'O':
     
    42604262        unknown_stabs = TRUE;
    42614263        break;
     4264      case 'v':
     4265        warning_level++;
     4266        break;
    42624267      case 'x':
    42634268        opt_x = TRUE;
Note: See TracChangeset for help on using the changeset viewer.