Snippets for bash 5.3.p15 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/bash-static/5.3.15/150amd64-default.log.
-
mkbuiltins.c:575:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 575 | for (i = 0; line = defs->lines->array[i]; i++) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
mkbuiltins.c:689:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 689 | for (i = 0; builtin = (BUILTIN_DESC *)defs->builtins->array[i]; i++) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
man2html.c:3702:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3702 | for (i = 0; owndef->st[deflen + 2 + i] = owndef->st[i]; i++); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -
./support/bashversion.c:67:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 67 | if (progname = strrchr (argv[0], '/')) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
./sm_loop.c:417:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 417 | if (not = (*p == L('!') || *p == L('^'))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./sm_loop.c:687:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 687 | for (s = string; c = *s; s++) | ~~^~~~ -
./sm_loop.c:898:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 898 | if (m1 = (GMATCH (s, srest, psub, pnext - 1, NULL, flags) == 0)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
smatch.c:519:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 519 | while (p = strchr (p, '[')) | ~~^~~~~~~~~~~~~~~~~ -
./sm_loop.c:417:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 417 | if (not = (*p == L('!') || *p == L('^'))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./sm_loop.c:687:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 687 | for (s = string; c = *s; s++) | ~~^~~~ -
./sm_loop.c:898:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 898 | if (m1 = (GMATCH (s, srest, psub, pnext - 1, NULL, flags) == 0)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./gm_loop.c:80:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 80 | while (c = *pat++) | ~~^~~~~~~~ -
./gm_loop.c:80:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 80 | while (c = *pat++) | ~~^~~~~~~~ -
spell.c:96:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 96 | for (p = best; *np = *p++; np++) | ~~~~^~~~~~ -
glob.c:226:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 226 | while (t = glob_patscan (pp, pe, '|', 0)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
glob.c:363:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 363 | while (t = glob_patscan_wc (pp, pe, '|', 0)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
complete.c:1209:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1209 | while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
complete.c:2330:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2330 | while (string = (*entry_function) (text, matches)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
complete.c:2399:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2399 | while (entry = getpwent ()) | ~~~~~~^~~~~~~~~~~~~ -
tilde.c:188:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 188 | if (result = strchr (string, '~')) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
bind.c:1566:31: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1566 | for (i = start,passc = 0; c = string[i]; i++) | ~~^~~~~~~~~~~ -
bind.c:2810:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2810 | for (i = 0; name = names[i]; i++) | ~~~~~^~~~~~~~~~ -
makepath.c:117:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 117 | while (*r++ = *s++) | ~~~~~^~~~~~ -
pathcanon.c:113:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 113 | if (rooted = ROOTEDPATH(path)) | ~~~~~~~^~~~~~~~~~~~~~~~~~ -
shmatch.c:86:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 86 | if (reg_err = regcomp (®ex, pattern, rflags)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
strtrans.c:250:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 250 | for (s = str; c = *s; s++) | ~~^~~~ -
strtrans.c:327:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 327 | for (wcs = wcstr; wcc = *wcs; wcs++) | ~~~~^~~~~~ -
strtrans.c:349:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 349 | for (s = string; c = *s; s++) | ~~^~~~ -
input.c:794:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 794 | if (c = _rl_next_macro_key ()) | ~~^~~~~~~~~~~~~~~~~~~~~~~ -
bashhist.c:732:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 732 | while (temp = previous_history ()) | ~~~~~^~~~~~~~~~~~~~~~~~~~~ -
bashline.c:809:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 809 | while (temp = fgets (buffer, 255, file)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:1726:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1726 | while (was_assignment = assignment (n, 0)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
bashline.c:2262:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2262 | while (val = glob_matches[local_index++]) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:2688:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2688 | while (srvent = getservent ()) | ~~~~~~~^~~~~~~~~~~~~~~ -
bashline.c:2742:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2742 | while (grent = getgrent ()) | ~~~~~~^~~~~~~~~~~~~ -
bashline.c:3525:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3525 | if (t = mbschr (local_dirname, '$')) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:3527:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3527 | else if (t = mbschr (local_dirname, '`')) /* XXX */ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:4303:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4303 | if (t = mbschr (dirname, '$')) | ~~^~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:4362:25: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4362 | for (i = j = 0; c = default_filename_quote_characters[i]; i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
bashline.c:4824:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4824 | for (passc = 0; c = string[i]; i++) | ~~^~~~~~~~~~~ -
misc.c:491:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 491 | if (ul = (UNDO_LIST *)entry->data) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ -
misc.c:551:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 551 | if (ul = (UNDO_LIST *)hent->data) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
braces.c:445:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 445 | if (t = (char *)malloc (2)) | ~~^~~~~~~~~~~~~~~~~~~~ -
braces.c:656:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 656 | while (c = text[i]) | ~~^~~~~~~~~ -
histexpand.c:212:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 212 | for (local_index = i; c = string[i]; i++) | ~~^~~~~~~~~~~ -
histsearch.c:258:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 258 | if (unescaped_backslash = (string[ret] == '\\')) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
eval.c:155:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 155 | else if (current_command = global_command) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ -
./tilde.c:188:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 188 | if (result = strchr (string, '~')) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
general.c:504:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 504 | while (c = string[indx]) | ~~^~~~~~~~~~~~~~ -
jobs.c:1555:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1555 | if (temp = jobs[job_index]) | ~~~~~^~~~~~~~~~~~~~~~~ -
mailcheck.c:392:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 392 | while (mailfile = extract_colon_unit (mailpaths, &i)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
mailcheck.c:464:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 464 | if (temp = expand_string_to_string (message, Q_DOUBLE_QUOTES)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
make_cmd.c:569:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 569 | while (full_line = read_secondary_line (delim_unquoted)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
pathexp.c:77:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 77 | while (c = *string++) | ~~^~~~~~~~~~~ -
pathexp.c:664:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 664 | while (colon_bit = split_ignorespec (this_ignoreval, &ptr)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
shell.c:915:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 915 | while (arg_character = arg_string[i++]) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
subst.c:802:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 802 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:873:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 873 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:1024:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1024 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:1182:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1182 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:1560:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1560 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:1851:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1851 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:2103:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2103 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:2222:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2222 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:2393:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 2393 | while (c = string[i]) | ~~^~~~~~~~~~~ -
subst.c:3599:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3599 | if (t = mbschr (name, LBRACK)) | ~~^~~~~~~~~~~~~~~~~~~~~~~ -
subst.c:4151:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4151 | while (c = string[sindex]) | ~~^~~~~~~~~~~~~~~~ -
subst.c:6910:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6910 | for (i = 0, ind = 0; c = string[i]; ) | ~~^~~~~~~~~~~ -
subst.c:6944:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6944 | if (valsub = (string && *string == '|')) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
subst.c:7774:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 7774 | else if (var = find_variable (name)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~ -
subst.c:7804:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 7804 | else if (var = find_variable_last_nameref (name, 0)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
trap.c:301:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 301 | if (ret = get_string_value ("BASH_TRAPSIG")) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
subst.c:9160:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 9160 | while (c = s[sindex]) | ~~^~~~~~~~~~~ -
subst.c:9865:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 9865 | if (c = string[sindex]) | ~~^~~~~~~~~~~~~~~~ -
subst.c:9875:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 9875 | if (c = string[sindex]) | ~~^~~~~~~~~~~~~~~~ -
subst.c:12214:31: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
-
subst.c:12751:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
-
unwind_prot.c:232:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 232 | while (elt = unwind_protect_list) | ~~~~^~~~~~~~~~~~~~~~~~~~~ -
unwind_prot.c:267:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 267 | while (elt = unwind_protect_list) | ~~~~^~~~~~~~~~~~~~~~~~~~~ -
variables.c:428:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 428 | if (temp_var = find_function (tname)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:435:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 435 | if (temp_var = bind_invalid_envvar (name, string, 0)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:1949:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1949 | if (v = hash_lookup (name, vc->table)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:3940:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3940 | if (elt = hash_remove (name, v->table, 0)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:3967:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 3967 | if (elt = hash_remove (name, v->table, 0)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:4858:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 4858 | for (i = 0, list_index = 0; var = vars[i]; i++) | ~~~~^~~~~~~~~ -
variables.c:5358:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 5358 | if (ret = vcxt->down) | ~~~~^~~~~~~~~~~~ -
variables.c:6125:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6125 | while (val = extract_colon_unit (temp, &tptr)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
variables.c:6172:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 6172 | if (v = find_variable (name)) | ~~^~~~~~~~~~~~~~~~~~~~~~ -
evalstring.c:461:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 461 | else if (command = global_command) | ~~~~~~~~^~~~~~~~~~~~~~~~ -
getopt.c:179:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 179 | if (sh_badopt = (temp == NULL || c == ':')) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
redir.c:1477:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1477 | if (vr = valid_array_reference (w, 0)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
redir.c:1492:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1492 | if (vr = valid_array_reference (w, 0)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~