Snippets for readline 8.3p3 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/readline/8.3.3/150amd64-default.log.
-
./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 ()) | ~~~~~~^~~~~~~~~~~~~ -
./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++) | ~~~~~^~~~~~~~~~ -
./input.c:798:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 798 | if (c = _rl_next_macro_key ()) | ~~^~~~~~~~~~~~~~~~~~~~~~~ -
./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) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
./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] == '\\')) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
./tilde.c:188:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 188 | if (result = strchr (string, '~')) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
../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 ()) | ~~~~~~^~~~~~~~~~~~~ -
../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++) | ~~~~~^~~~~~~~~~ -
../input.c:798:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 798 | if (c = _rl_next_macro_key ()) | ~~^~~~~~~~~~~~~~~~~~~~~~~ -
../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) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
../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] == '\\')) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ -
../tilde.c:188:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 188 | if (result = strchr (string, '~')) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~