| 7518 | */ |
| 7519 | |
| 7520 | staticfn boolean |
| 7521 | warning_opts(char *opts, const char *optype) |
| 7522 | { |
| 7523 | uchar translate[WARNCOUNT]; |
| 7524 | int length, i; |
| 7525 | |
| 7526 | if ((opts = string_for_env_opt(optype, opts, FALSE)) == empty_optstr) |
| 7527 | return FALSE; |
| 7528 | escapes(opts, opts); |
| 7529 | |
| 7530 | length = (int) strlen(opts); |
| 7531 | /* match the form obtained from PC configuration files */ |
| 7532 | for (i = 0; i < WARNCOUNT; i++) |
| 7533 | translate[i] = (i >= length) ? 0 |
| 7534 | : opts[i] ? (uchar) opts[i] |
| 7535 | : def_warnsyms[i].sym; |
| 7536 | assign_warnings(translate); |
| 7537 | return TRUE; |
| 7538 | } |
| 7539 | |
| 7540 | void |
| 7541 | assign_warnings(uchar *graph_chars) |
no test coverage detected