Snippets for readline 8.3 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/readline/8.3/4.fc44/data/logs/aarch64/build.log.
-
parens.c:115:36: warning: variable ‘ready’ set but not used [-Wunused-but-set-variable=] 115 | int orig_point, match_point, ready; | ^~~~~ -
signals.c:422:25: warning: unused variable ‘oset’ [-Wunused-variable] 422 | static sigset_t bset, oset; | ^~~~ -
isearch.c:912:7: warning: variable ‘c’ set but not used [-Wunused-but-set-variable=] 912 | int c, r; | ^ -
readline.c:577:20: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 577 | int c, code, lk, r; | ^ -
readline.c:576:21: warning: unused variable ‘eof_found’ [-Wunused-variable] 576 | static int lastc, eof_found; | ^~~~~~~~~ -
parse-colors.h:44:14: warning: ‘color_buf’ defined but not used [-Wunused-variable] 44 | static char *color_buf; | ^~~~~~~~~ -
input.c:798:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 798 | if (c = _rl_next_macro_key ()) | ^ -
histsearch.c:258:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 258 | if (unescaped_backslash = (string[ret] == '\\')) | ^~~~~~~~~~~~~~~~~~~ -
misc.c:491:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 491 | if (ul = (UNDO_LIST *)entry->data) | ^~ -
misc.c:551:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 551 | if (ul = (UNDO_LIST *)hent->data) | ^~ -
./tilde.c:188:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 188 | if (result = strchr (string, '~')) | ^ -
./tilde.c:188:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 188 | if (result = strchr (string, '~')) | ^~~~~~ -
histfile.c:476:49: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 476 | int file, chars_read, rv, orig_lines, exists, r; | ^ -
../parens.c:115:36: warning: variable ‘ready’ set but not used [-Wunused-but-set-variable=] 115 | int orig_point, match_point, ready; | ^~~~~ -
complete.c:1209:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1209 | while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY)) | ^~~~~~~~ -
complete.c:2330:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2330 | while (string = (*entry_function) (text, matches)) | ^~~~~~ -
complete.c:2399:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2399 | while (entry = getpwent ()) | ^~~~~ -
complete.c:1101:22: warning: ‘printed_len’ may be used uninitialized [-Wmaybe-uninitialized] 1101 | printed_len++; | ~~~~~~~~~~~^~ -
vi_mode.c:625:7: warning: variable ‘opoint’ set but not used [-Wunused-but-set-variable=] 625 | int opoint; | ^~~~~~ -
vi_mode.c:2124:7: warning: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 2124 | strncpy (mb, _rl_vi_last_replacement, MB_LEN_MAX); | ^ -
text.c:987:13: warning: variable ‘x’ set but not used [-Wunused-but-set-variable=] 987 | int r, n, x; | ^ -
text.c:101:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 101 | strncpy (rl_line_buffer + rl_point, string, l); | ^ -
../readline.c:577:20: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 577 | int c, code, lk, r; | ^ -
../readline.c:576:21: warning: unused variable ‘eof_found’ [-Wunused-variable] 576 | static int lastc, eof_found; | ^~~~~~~~~ -
../parse-colors.h:44:14: warning: ‘color_buf’ defined but not used [-Wunused-variable] 44 | static char *color_buf; | ^~~~~~~~~ -
bind.c:1566:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1566 | for (i = start,passc = 0; c = string[i]; i++) | ^ -
bind.c:2810:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2810 | for (i = 0; name = names[i]; i++) | ^~~~ -
histexpand.c:212:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 212 | for (local_index = i; c = string[i]; i++) | ^ -
../signals.c:422:25: warning: unused variable ‘oset’ [-Wunused-variable] 422 | static sigset_t bset, oset; | ^~~~ -
../isearch.c:912:7: warning: variable ‘c’ set but not used [-Wunused-but-set-variable=] 912 | int c, r; | ^ -
../input.c:798:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 798 | if (c = _rl_next_macro_key ()) | ^ -
../misc.c:491:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 491 | if (ul = (UNDO_LIST *)entry->data) | ^~ -
../misc.c:551:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 551 | if (ul = (UNDO_LIST *)hent->data) | ^~ -
../histsearch.c:258:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 258 | if (unescaped_backslash = (string[ret] == '\\')) | ^~~~~~~~~~~~~~~~~~~ -
../vi_mode.c:625:7: warning: variable ‘opoint’ set but not used [-Wunused-but-set-variable=] 625 | int opoint; | ^~~~~~ -
../vi_mode.c:2124:7: warning: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 2124 | strncpy (mb, _rl_vi_last_replacement, MB_LEN_MAX); | ^ -
../histfile.c:476:49: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 476 | int file, chars_read, rv, orig_lines, exists, r; | ^ -
../tilde.c:188:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 188 | if (result = strchr (string, '~')) | ^ -
../tilde.c:188:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 188 | if (result = strchr (string, '~')) | ^~~~~~ -
../complete.c:1209:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1209 | while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY)) | ^~~~~~~~ -
../complete.c:2330:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2330 | while (string = (*entry_function) (text, matches)) | ^~~~~~ -
../complete.c:2399:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2399 | while (entry = getpwent ()) | ^~~~~ -
../complete.c:1101:22: warning: ‘printed_len’ may be used uninitialized [-Wmaybe-uninitialized] 1101 | printed_len++; | ~~~~~~~~~~~^~ -
display.c:1487:32: warning: ‘physpos’ may be used uninitialized [-Wmaybe-uninitialized] 1487 | _rl_last_c_pos = physpos + WRAP_OFFSET (cursor_linenum, wrap_offset); | ^ -
../text.c:987:13: warning: variable ‘x’ set but not used [-Wunused-but-set-variable=] 987 | int r, n, x; | ^ -
../text.c:101:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 101 | strncpy (rl_line_buffer + rl_point, string, l); | ^ -
../bind.c:1566:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1566 | for (i = start,passc = 0; c = string[i]; i++) | ^ -
../bind.c:2810:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2810 | for (i = 0; name = names[i]; i++) | ^~~~ -
../histexpand.c:212:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 212 | for (local_index = i; c = string[i]; i++) | ^ -
../display.c:1487:32: warning: ‘physpos’ may be used uninitialized [-Wmaybe-uninitialized] 1487 | _rl_last_c_pos = physpos + WRAP_OFFSET (cursor_linenum, wrap_offset); | ^