readline-8.2-8.fc40
List of Defects
Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/share/doc/readline-devel/rlfe/configure:21:3: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally).
# 19| if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
# 20| emulate sh
# 21|-> NULLCMD=:
# 22| # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# 23| # is contrary to our usage. Disable this feature.
Error: SHELLCHECK_WARNING (CWE-398): [#def2]
/usr/share/doc/readline-devel/rlfe/configure:24:12: error[SC2142]: Aliases can't use positional parameters. Use a function.
# 22| # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# 23| # is contrary to our usage. Disable this feature.
# 24|-> alias -g '${1+"$@"}'='"$@"'
# 25| setopt NO_GLOB_SUBST
# 26| else
Error: SHELLCHECK_WARNING: [#def3]
/usr/share/doc/readline-devel/rlfe/configure:29:12: warning[SC3040]: In POSIX sh, set option posix is undefined.
# 27| case `(set -o) 2>/dev/null` in #(
# 28| *posix*) :
# 29|-> set -o posix ;; #(
# 30| *) :
# 31| ;;
Error: SHELLCHECK_WARNING: [#def4]
/usr/share/doc/readline-devel/rlfe/configure:53:29: warning[SC3037]: In POSIX sh, echo flags are undefined.
# 51| as_echo_n='printf %s'
# 52| else
# 53|-> if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
# 54| as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
# 55| as_echo_n='/usr/ucb/echo -n'
Error: SHELLCHECK_WARNING (CWE-569): [#def5]
/usr/share/doc/readline-devel/rlfe/configure:57:18: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
# 55| as_echo_n='/usr/ucb/echo -n'
# 56| else
# 57|-> as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
# 58| as_echo_n_body='eval
# 59| arg=$1;
Error: SHELLCHECK_WARNING (CWE-569): [#def6]
/usr/share/doc/readline-devel/rlfe/configure:58:20: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
# 56| else
# 57| as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
# 58|-> as_echo_n_body='eval
# 59| arg=$1;
# 60| case $arg in #(
Error: SHELLCHECK_WARNING (CWE-569): [#def7]
/usr/share/doc/readline-devel/rlfe/configure:67:12: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 65| expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
# 66| '
# 67|-> export as_echo_n_body
# 68| as_echo_n='sh -c $as_echo_n_body as_echo'
# 69| fi
Error: SHELLCHECK_WARNING (CWE-569): [#def8]
/usr/share/doc/readline-devel/rlfe/configure:70:10: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 68| as_echo_n='sh -c $as_echo_n_body as_echo'
# 69| fi
# 70|-> export as_echo_body
# 71| as_echo='sh -c $as_echo_body as_echo'
# 72| fi
Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/share/doc/readline-devel/rlfe/configure:78:24: warning[SC2034]: FPATH appears unused. Verify use (or export if used externally).
# 76| PATH_SEPARATOR=:
# 77| (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
# 78|-> (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
# 79| PATH_SEPARATOR=';'
# 80| }
Error: SHELLCHECK_WARNING (CWE-569): [#def10]
/usr/share/doc/readline-devel/rlfe/configure:121:17: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 119| # trigger a bug in pdksh 5.2.14.
# 120| for as_var in BASH_ENV ENV MAIL MAILPATH
# 121|-> do eval test x\${$as_var+set} = xset \
# 122| && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
# 123| done
Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/share/doc/readline-devel/rlfe/configure:121:29: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 119| # trigger a bug in pdksh 5.2.14.
# 120| for as_var in BASH_ENV ENV MAIL MAILPATH
# 121|-> do eval test x\${$as_var+set} = xset \
# 122| && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
# 123| done
Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/share/doc/readline-devel/rlfe/configure:251:1: warning[SC2034]: CLICOLOR_FORCE appears unused. Verify use (or export if used externally).
# 249| export SHELL
# 250| # Unset more variables known to interfere with behavior of common tools.
# 251|-> CLICOLOR_FORCE= GREP_OPTIONS=
# 252| unset CLICOLOR_FORCE GREP_OPTIONS
# 253|
Error: SHELLCHECK_WARNING (CWE-480): [#def13]
/usr/share/doc/readline-devel/rlfe/configure:251:16: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
# 249| export SHELL
# 250| # Unset more variables known to interfere with behavior of common tools.
# 251|-> CLICOLOR_FORCE= GREP_OPTIONS=
# 252| unset CLICOLOR_FORCE GREP_OPTIONS
# 253|
Error: SHELLCHECK_WARNING (CWE-563): [#def14]
/usr/share/doc/readline-devel/rlfe/configure:251:17: warning[SC2034]: GREP_OPTIONS appears unused. Verify use (or export if used externally).
# 249| export SHELL
# 250| # Unset more variables known to interfere with behavior of common tools.
# 251|-> CLICOLOR_FORCE= GREP_OPTIONS=
# 252| unset CLICOLOR_FORCE GREP_OPTIONS
# 253|
Error: SHELLCHECK_WARNING (CWE-563): [#def15]
/usr/share/doc/readline-devel/rlfe/configure:264:1: warning[SC2034]: as_unset appears unused. Verify use (or export if used externally).
# 262| { eval $1=; unset $1;}
# 263| }
# 264|-> as_unset=as_fn_unset
# 265|
# 266| # as_fn_set_status STATUS
Error: SHELLCHECK_WARNING (CWE-456): [#def16]
/usr/share/doc/readline-devel/rlfe/configure:385:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 383| if expr a : '\(a\)' >/dev/null 2>&1 &&
# 384| test "X`expr 00001 : '.*\(...\)'`" = X001; then
# 385|-> as_expr=expr
# 386| else
# 387| as_expr=false
Error: SHELLCHECK_WARNING (CWE-456): [#def17]
/usr/share/doc/readline-devel/rlfe/configure:391:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 389|
# 390| if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
# 391|-> as_basename=basename
# 392| else
# 393| as_basename=false
Error: SHELLCHECK_WARNING (CWE-456): [#def18]
/usr/share/doc/readline-devel/rlfe/configure:397:3: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 395|
# 396| if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
# 397|-> as_dirname=dirname
# 398| else
# 399| as_dirname=false
Error: SHELLCHECK_WARNING (CWE-563): [#def19]
/usr/share/doc/readline-devel/rlfe/configure:429:3: warning[SC2034]: as_lineno_1 appears unused. Verify use (or export if used externally).
# 427|
# 428|
# 429|-> as_lineno_1=$LINENO as_lineno_1a=$LINENO
# 430| as_lineno_2=$LINENO as_lineno_2a=$LINENO
# 431| eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Error: SHELLCHECK_WARNING (CWE-563): [#def20]
/usr/share/doc/readline-devel/rlfe/configure:429:23: warning[SC2034]: as_lineno_1a appears unused. Verify use (or export if used externally).
# 427|
# 428|
# 429|-> as_lineno_1=$LINENO as_lineno_1a=$LINENO
# 430| as_lineno_2=$LINENO as_lineno_2a=$LINENO
# 431| eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
Error: SHELLCHECK_WARNING (CWE-563): [#def21]
/usr/share/doc/readline-devel/rlfe/configure:430:3: warning[SC2034]: as_lineno_2 appears unused. Verify use (or export if used externally).
# 428|
# 429| as_lineno_1=$LINENO as_lineno_1a=$LINENO
# 430|-> as_lineno_2=$LINENO as_lineno_2a=$LINENO
# 431| eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
# 432| test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Error: SHELLCHECK_WARNING (CWE-563): [#def22]
/usr/share/doc/readline-devel/rlfe/configure:430:23: warning[SC2034]: as_lineno_2a appears unused. Verify use (or export if used externally).
# 428|
# 429| as_lineno_1=$LINENO as_lineno_1a=$LINENO
# 430|-> as_lineno_2=$LINENO as_lineno_2a=$LINENO
# 431| eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
# 432| test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
Error: SHELLCHECK_WARNING (CWE-457): [#def23]
/usr/share/doc/readline-devel/rlfe/configure:431:29: warning[SC2154]: as_run is referenced but not assigned.
# 429| as_lineno_1=$LINENO as_lineno_1a=$LINENO
# 430| as_lineno_2=$LINENO as_lineno_2a=$LINENO
# 431|-> eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
# 432| test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# 433| # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Error: SHELLCHECK_WARNING (CWE-480): [#def24]
/usr/share/doc/readline-devel/rlfe/configure:460:8: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
# 458| }
# 459|
# 460|-> ECHO_C= ECHO_N= ECHO_T=
# 461| case `echo -n x` in #(((((
# 462| -n*)
Error: SHELLCHECK_WARNING (CWE-480): [#def25]
/usr/share/doc/readline-devel/rlfe/configure:460:16: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
# 458| }
# 459|
# 460|-> ECHO_C= ECHO_N= ECHO_T=
# 461| case `echo -n x` in #(((((
# 462| -n*)
Error: SHELLCHECK_WARNING: [#def26]
/usr/share/doc/readline-devel/rlfe/configure:461:12: warning[SC3037]: In POSIX sh, echo flags are undefined.
# 459|
# 460| ECHO_C= ECHO_N= ECHO_T=
# 461|-> case `echo -n x` in #(((((
# 462| -n*)
# 463| case `echo 'xy\c'` in
Error: SHELLCHECK_WARNING (CWE-563): [#def27]
/usr/share/doc/readline-devel/rlfe/configure:465:8: warning[SC2034]: ECHO_C appears unused. Verify use (or export if used externally).
# 463| case `echo 'xy\c'` in
# 464| *c*) ECHO_T=' ';; # ECHO_T is single tab character.
# 465|-> xy) ECHO_C='\c';;
# 466| *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
# 467| ECHO_T=' ';;
Error: SHELLCHECK_WARNING (CWE-156): [#def28]
/usr/share/doc/readline-devel/rlfe/configure:466:13: warning[SC2046]: Quote this to prevent word splitting.
# 464| *c*) ECHO_T=' ';; # ECHO_T is single tab character.
# 465| xy) ECHO_C='\c';;
# 466|-> *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
# 467| ECHO_T=' ';;
# 468| esac;;
Error: SHELLCHECK_WARNING (CWE-563): [#def29]
/usr/share/doc/readline-devel/rlfe/configure:467:8: warning[SC2034]: ECHO_T appears unused. Verify use (or export if used externally).
# 465| xy) ECHO_C='\c';;
# 466| *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
# 467|-> ECHO_T=' ';;
# 468| esac;;
# 469| *)
Error: SHELLCHECK_WARNING (CWE-563): [#def30]
/usr/share/doc/readline-devel/rlfe/configure:470:3: warning[SC2034]: ECHO_N appears unused. Verify use (or export if used externally).
# 468| esac;;
# 469| *)
# 470|-> ECHO_N='-n';;
# 471| esac
# 472|
Error: SHELLCHECK_WARNING (CWE-456): [#def31]
/usr/share/doc/readline-devel/rlfe/configure:490:5: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 488| as_ln_s='cp -p'
# 489| elif ln conf$$.file conf$$ 2>/dev/null; then
# 490|-> as_ln_s=ln
# 491| else
# 492| as_ln_s='cp -p'
Error: SHELLCHECK_WARNING (CWE-563): [#def32]
/usr/share/doc/readline-devel/rlfe/configure:495:3: warning[SC2034]: as_ln_s appears unused. Verify use (or export if used externally).
# 493| fi
# 494| else
# 495|-> as_ln_s='cp -p'
# 496| fi
# 497| rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
Error: SHELLCHECK_WARNING (CWE-697): [#def33]
/usr/share/doc/readline-devel/rlfe/configure:507:14: warning[SC2065]: This is interpreted as a shell file redirection, not a comparison.
# 505| fi
# 506|
# 507|-> if test -x / >/dev/null 2>&1; then
# 508| as_test_x='test -x'
# 509| else
Error: SHELLCHECK_WARNING (CWE-569): [#def34]
/usr/share/doc/readline-devel/rlfe/configure:516:17: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
# 514| fi
# 515| as_test_x='
# 516|-> eval sh -c '\''
# 517| if test -d "$1"; then
# 518| test -d "$1/.";
Error: SHELLCHECK_WARNING (CWE-563): [#def35]
/usr/share/doc/readline-devel/rlfe/configure:528:1: warning[SC2034]: as_executable_p appears unused. Verify use (or export if used externally).
# 526| '
# 527| fi
# 528|-> as_executable_p=$as_test_x
# 529|
# 530| # Sed expression to map a string onto a valid CPP name.
Error: SHELLCHECK_WARNING (CWE-569): [#def36]
/usr/share/doc/readline-devel/rlfe/configure:531:12: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
# 529|
# 530| # Sed expression to map a string onto a valid CPP name.
# 531|-> as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# 532|
# 533| # Sed expression to map a string onto a valid variable name.
Error: SHELLCHECK_WARNING (CWE-569): [#def37]
/usr/share/doc/readline-devel/rlfe/configure:534:11: warning[SC2089]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
# 532|
# 533| # Sed expression to map a string onto a valid variable name.
# 534|-> as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# 535|
# 536|
Error: SHELLCHECK_WARNING (CWE-563): [#def38]
/usr/share/doc/readline-devel/rlfe/configure:543:1: warning[SC2034]: ac_hostname appears unused. Verify use (or export if used externally).
# 541| # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# 542| # so uname gets run too.
# 543|-> ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
# 544|
# 545| #
Error: SHELLCHECK_WARNING (CWE-563): [#def39]
/usr/share/doc/readline-devel/rlfe/configure:550:1: warning[SC2034]: ac_config_libobj_dir appears unused. Verify use (or export if used externally).
# 548| ac_default_prefix=/usr/local
# 549| ac_clean_files=
# 550|-> ac_config_libobj_dir=.
# 551| LIBOBJS=
# 552| cross_compiling=no
Error: SHELLCHECK_WARNING (CWE-563): [#def40]
/usr/share/doc/readline-devel/rlfe/configure:553:1: warning[SC2034]: subdirs appears unused. Verify use (or export if used externally).
# 551| LIBOBJS=
# 552| cross_compiling=no
# 553|-> subdirs=
# 554| MFLAGS=
# 555| MAKEFLAGS=
Error: SHELLCHECK_WARNING (CWE-563): [#def41]
/usr/share/doc/readline-devel/rlfe/configure:554:1: warning[SC2034]: MFLAGS appears unused. Verify use (or export if used externally).
# 552| cross_compiling=no
# 553| subdirs=
# 554|-> MFLAGS=
# 555| MAKEFLAGS=
# 556|
Error: SHELLCHECK_WARNING (CWE-563): [#def42]
/usr/share/doc/readline-devel/rlfe/configure:555:1: warning[SC2034]: MAKEFLAGS appears unused. Verify use (or export if used externally).
# 553| subdirs=
# 554| MFLAGS=
# 555|-> MAKEFLAGS=
# 556|
# 557| # Identity of this package.
Error: SHELLCHECK_WARNING (CWE-563): [#def43]
/usr/share/doc/readline-devel/rlfe/configure:747:5: warning[SC2034]: bindir appears unused. Verify use (or export if used externally).
# 745| ac_prev=bindir ;;
# 746| -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
# 747|-> bindir=$ac_optarg ;;
# 748|
# 749| -build | --build | --buil | --bui | --bu)
Error: SHELLCHECK_WARNING (CWE-563): [#def44]
/usr/share/doc/readline-devel/rlfe/configure:800:5: warning[SC2034]: dvidir appears unused. Verify use (or export if used externally).
# 798| ac_prev=dvidir ;;
# 799| -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
# 800|-> dvidir=$ac_optarg ;;
# 801|
# 802| -enable-* | --enable-*)
Error: SHELLCHECK_WARNING (CWE-563): [#def45]
/usr/share/doc/readline-devel/rlfe/configure:829:5: warning[SC2034]: with_gas appears unused. Verify use (or export if used externally).
# 827| -gas | --gas | --ga | --g)
# 828| # Obsolete; use --with-gas.
# 829|-> with_gas=yes ;;
# 830|
# 831| -help | --help | --hel | --he | -h)
Error: SHELLCHECK_WARNING (CWE-563): [#def46]
/usr/share/doc/readline-devel/rlfe/configure:847:5: warning[SC2034]: htmldir appears unused. Verify use (or export if used externally).
# 845| -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
# 846| | --ht=*)
# 847|-> htmldir=$ac_optarg ;;
# 848|
# 849| -includedir | --includedir | --includedi | --included | --include \
Error: SHELLCHECK_WARNING (CWE-563): [#def47]
/usr/share/doc/readline-devel/rlfe/configure:854:5: warning[SC2034]: includedir appears unused. Verify use (or export if used externally).
# 852| -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
# 853| | --includ=* | --inclu=* | --incl=* | --inc=*)
# 854|-> includedir=$ac_optarg ;;
# 855|
# 856| -infodir | --infodir | --infodi | --infod | --info | --inf)
Error: SHELLCHECK_WARNING (CWE-563): [#def48]
/usr/share/doc/readline-devel/rlfe/configure:864:5: warning[SC2034]: libdir appears unused. Verify use (or export if used externally).
# 862| ac_prev=libdir ;;
# 863| -libdir=* | --libdir=* | --libdi=* | --libd=*)
# 864|-> libdir=$ac_optarg ;;
# 865|
# 866| -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
Error: SHELLCHECK_WARNING (CWE-563): [#def49]
/usr/share/doc/readline-devel/rlfe/configure:871:5: warning[SC2034]: libexecdir appears unused. Verify use (or export if used externally).
# 869| -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
# 870| | --libexe=* | --libex=* | --libe=*)
# 871|-> libexecdir=$ac_optarg ;;
# 872|
# 873| -localedir | --localedir | --localedi | --localed | --locale)
Error: SHELLCHECK_WARNING (CWE-563): [#def50]
/usr/share/doc/readline-devel/rlfe/configure:883:5: warning[SC2034]: localstatedir appears unused. Verify use (or export if used externally).
# 881| -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
# 882| | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
# 883|-> localstatedir=$ac_optarg ;;
# 884|
# 885| -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
Error: SHELLCHECK_WARNING (CWE-563): [#def51]
/usr/share/doc/readline-devel/rlfe/configure:892:5: warning[SC2034]: with_fp appears unused. Verify use (or export if used externally).
# 890| -nfp | --nfp | --nf)
# 891| # Obsolete; use --without-fp.
# 892|-> with_fp=no ;;
# 893|
# 894| -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Error: SHELLCHECK_WARNING (CWE-563): [#def52]
/usr/share/doc/readline-devel/rlfe/configure:900:5: warning[SC2034]: no_recursion appears unused. Verify use (or export if used externally).
# 898| -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# 899| | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
# 900|-> no_recursion=yes ;;
# 901|
# 902| -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
Error: SHELLCHECK_WARNING (CWE-563): [#def53]
/usr/share/doc/readline-devel/rlfe/configure:909:5: warning[SC2034]: oldincludedir appears unused. Verify use (or export if used externally).
# 907| | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
# 908| | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
# 909|-> oldincludedir=$ac_optarg ;;
# 910|
# 911| -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
Error: SHELLCHECK_WARNING (CWE-563): [#def54]
/usr/share/doc/readline-devel/rlfe/configure:921:5: warning[SC2034]: program_prefix appears unused. Verify use (or export if used externally).
# 919| -program-prefix=* | --program-prefix=* | --program-prefi=* \
# 920| | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
# 921|-> program_prefix=$ac_optarg ;;
# 922|
# 923| -program-suffix | --program-suffix | --program-suffi | --program-suff \
Error: SHELLCHECK_WARNING (CWE-563): [#def55]
/usr/share/doc/readline-devel/rlfe/configure:928:5: warning[SC2034]: program_suffix appears unused. Verify use (or export if used externally).
# 926| -program-suffix=* | --program-suffix=* | --program-suffi=* \
# 927| | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
# 928|-> program_suffix=$ac_optarg ;;
# 929|
# 930| -program-transform-name | --program-transform-name \
Error: SHELLCHECK_WARNING (CWE-563): [#def56]
/usr/share/doc/readline-devel/rlfe/configure:945:5: warning[SC2034]: program_transform_name appears unused. Verify use (or export if used externally).
# 943| | --program-trans=* | --program-tran=* \
# 944| | --progr-tra=* | --program-tr=* | --program-t=*)
# 945|-> program_transform_name=$ac_optarg ;;
# 946|
# 947| -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
Error: SHELLCHECK_WARNING (CWE-563): [#def57]
/usr/share/doc/readline-devel/rlfe/configure:950:5: warning[SC2034]: pdfdir appears unused. Verify use (or export if used externally).
# 948| ac_prev=pdfdir ;;
# 949| -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
# 950|-> pdfdir=$ac_optarg ;;
# 951|
# 952| -psdir | --psdir | --psdi | --psd | --ps)
Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/share/doc/readline-devel/rlfe/configure:955:5: warning[SC2034]: psdir appears unused. Verify use (or export if used externally).
# 953| ac_prev=psdir ;;
# 954| -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
# 955|-> psdir=$ac_optarg ;;
# 956|
# 957| -q | -quiet | --quiet | --quie | --qui | --qu | --q \
Error: SHELLCHECK_WARNING (CWE-563): [#def59]
/usr/share/doc/readline-devel/rlfe/configure:965:5: warning[SC2034]: sbindir appears unused. Verify use (or export if used externally).
# 963| -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
# 964| | --sbi=* | --sb=*)
# 965|-> sbindir=$ac_optarg ;;
# 966|
# 967| -sharedstatedir | --sharedstatedir | --sharedstatedi \
Error: SHELLCHECK_WARNING (CWE-563): [#def60]
/usr/share/doc/readline-devel/rlfe/configure:976:5: warning[SC2034]: sharedstatedir appears unused. Verify use (or export if used externally).
# 974| | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
# 975| | --sha=* | --sh=*)
# 976|-> sharedstatedir=$ac_optarg ;;
# 977|
# 978| -site | --site | --sit)
Error: SHELLCHECK_WARNING (CWE-563): [#def61]
/usr/share/doc/readline-devel/rlfe/configure:981:5: warning[SC2034]: site appears unused. Verify use (or export if used externally).
# 979| ac_prev=site ;;
# 980| -site=* | --site=* | --sit=*)
# 981|-> site=$ac_optarg ;;
# 982|
# 983| -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
Error: SHELLCHECK_WARNING (CWE-563): [#def62]
/usr/share/doc/readline-devel/rlfe/configure:993:5: warning[SC2034]: sysconfdir appears unused. Verify use (or export if used externally).
# 991| -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
# 992| | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
# 993|-> sysconfdir=$ac_optarg ;;
# 994|
# 995| -target | --target | --targe | --targ | --tar | --ta | --t)
Error: SHELLCHECK_WARNING (CWE-563): [#def63]
/usr/share/doc/readline-devel/rlfe/configure:1001:5: warning[SC2034]: verbose appears unused. Verify use (or export if used externally).
# 999|
# 1000| -v | -verbose | --verbose | --verbos | --verbo | --verb)
# 1001|-> verbose=yes ;;
# 1002|
# 1003| -version | --version | --versio | --versi | --vers | -V)
Error: SHELLCHECK_WARNING (CWE-563): [#def64]
/usr/share/doc/readline-devel/rlfe/configure:1040:5: warning[SC2034]: with_x appears unused. Verify use (or export if used externally).
# 1038| --x)
# 1039| # Obsolete; use --with-x.
# 1040|-> with_x=yes ;;
# 1041|
# 1042| -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/usr/share/doc/readline-devel/rlfe/configure:1047:5: warning[SC2034]: x_includes appears unused. Verify use (or export if used externally).
# 1045| -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
# 1046| | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
# 1047|-> x_includes=$ac_optarg ;;
# 1048|
# 1049| -x-libraries | --x-libraries | --x-librarie | --x-librari \
Error: SHELLCHECK_WARNING (CWE-563): [#def66]
/usr/share/doc/readline-devel/rlfe/configure:1054:5: warning[SC2034]: x_libraries appears unused. Verify use (or export if used externally).
# 1052| -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
# 1053| | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
# 1054|-> x_libraries=$ac_optarg ;;
# 1055|
# 1056| -*) as_fn_error $? "unrecognized option: \`$ac_option'
Error: SHELLCHECK_WARNING (CWE-398): [#def67]
/usr/share/doc/readline-devel/rlfe/configure:1068:12: warning[SC2163]: This does not export 'ac_envvar'. Remove $/${} for that, or use ${var?} to quiet.
# 1066| esac
# 1067| eval $ac_envvar=\$ac_optarg
# 1068|-> export $ac_envvar ;;
# 1069|
# 1070| *)
Error: SHELLCHECK_WARNING (CWE-457): [#def68]
/usr/share/doc/readline-devel/rlfe/configure:1087:8: warning[SC2154]: enable_option_checking is referenced but not assigned.
# 1085|
# 1086| if test -n "$ac_unrecognized_opts"; then
# 1087|-> case $enable_option_checking in
# 1088| no) ;;
# 1089| fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Error: SHELLCHECK_WARNING (CWE-563): [#def69]
/usr/share/doc/readline-devel/rlfe/configure:1118:1: warning[SC2034]: build appears unused. Verify use (or export if used externally).
# 1116| # used to hold the argument of --host etc.
# 1117| # FIXME: To remove some day.
# 1118|-> build=$build_alias
# 1119| host=$host_alias
# 1120| target=$target_alias
Error: SHELLCHECK_WARNING (CWE-563): [#def70]
/usr/share/doc/readline-devel/rlfe/configure:1119:1: warning[SC2034]: host appears unused. Verify use (or export if used externally).
# 1117| # FIXME: To remove some day.
# 1118| build=$build_alias
# 1119|-> host=$host_alias
# 1120| target=$target_alias
# 1121|
Error: SHELLCHECK_WARNING (CWE-563): [#def71]
/usr/share/doc/readline-devel/rlfe/configure:1120:1: warning[SC2034]: target appears unused. Verify use (or export if used externally).
# 1118| build=$build_alias
# 1119| host=$host_alias
# 1120|-> target=$target_alias
# 1121|
# 1122| # FIXME: To remove some day.
Error: SHELLCHECK_WARNING (CWE-569): [#def72]
/usr/share/doc/readline-devel/rlfe/configure:1200:31: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1198| esac
# 1199| for ac_var in $ac_precious_vars; do
# 1200|-> eval ac_env_${ac_var}_set=\${${ac_var}+set}
# 1201| eval ac_env_${ac_var}_value=\$${ac_var}
# 1202| eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Error: SHELLCHECK_WARNING (CWE-569): [#def73]
/usr/share/doc/readline-devel/rlfe/configure:1200:45: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1198| esac
# 1199| for ac_var in $ac_precious_vars; do
# 1200|-> eval ac_env_${ac_var}_set=\${${ac_var}+set}
# 1201| eval ac_env_${ac_var}_value=\$${ac_var}
# 1202| eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
Error: SHELLCHECK_WARNING (CWE-569): [#def74]
/usr/share/doc/readline-devel/rlfe/configure:1202:34: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1200| eval ac_env_${ac_var}_set=\${${ac_var}+set}
# 1201| eval ac_env_${ac_var}_value=\$${ac_var}
# 1202|-> eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
# 1203| eval ac_cv_env_${ac_var}_value=\$${ac_var}
# 1204| done
Error: SHELLCHECK_WARNING (CWE-569): [#def75]
/usr/share/doc/readline-devel/rlfe/configure:1202:48: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1200| eval ac_env_${ac_var}_set=\${${ac_var}+set}
# 1201| eval ac_env_${ac_var}_value=\$${ac_var}
# 1202|-> eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
# 1203| eval ac_cv_env_${ac_var}_value=\$${ac_var}
# 1204| done
Error: SHELLCHECK_WARNING (CWE-457): [#def76]
/usr/share/doc/readline-devel/rlfe/configure:1302:19: warning[SC2154]: ac_subdirs_all is referenced but not assigned.
# 1300| if test "$ac_init_help" = "recursive"; then
# 1301| # If there are subdirs, report their specific --help.
# 1302|-> for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
# 1303| test -d "$ac_dir" ||
# 1304| { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
Error: SHELLCHECK_WARNING (CWE-563): [#def77]
/usr/share/doc/readline-devel/rlfe/configure:1306:5: warning[SC2034]: ac_builddir appears unused. Verify use (or export if used externally).
# 1304| { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
# 1305| continue
# 1306|-> ac_builddir=.
# 1307|
# 1308| case "$ac_dir" in
Error: SHELLCHECK_WARNING (CWE-480): [#def78]
/usr/share/doc/readline-devel/rlfe/configure:1309:18: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
# 1307|
# 1308| case "$ac_dir" in
# 1309|-> .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
# 1310| *)
# 1311| ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Error: SHELLCHECK_WARNING (CWE-563): [#def79]
/usr/share/doc/readline-devel/rlfe/configure:1319:1: warning[SC2034]: ac_abs_top_builddir appears unused. Verify use (or export if used externally).
# 1317| esac ;;
# 1318| esac
# 1319|-> ac_abs_top_builddir=$ac_pwd
# 1320| ac_abs_builddir=$ac_pwd$ac_dir_suffix
# 1321| # for backward compatibility:
Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/share/doc/readline-devel/rlfe/configure:1320:1: warning[SC2034]: ac_abs_builddir appears unused. Verify use (or export if used externally).
# 1318| esac
# 1319| ac_abs_top_builddir=$ac_pwd
# 1320|-> ac_abs_builddir=$ac_pwd$ac_dir_suffix
# 1321| # for backward compatibility:
# 1322| ac_top_builddir=$ac_top_build_prefix
Error: SHELLCHECK_WARNING (CWE-563): [#def81]
/usr/share/doc/readline-devel/rlfe/configure:1322:1: warning[SC2034]: ac_top_builddir appears unused. Verify use (or export if used externally).
# 1320| ac_abs_builddir=$ac_pwd$ac_dir_suffix
# 1321| # for backward compatibility:
# 1322|-> ac_top_builddir=$ac_top_build_prefix
# 1323|
# 1324| case $srcdir in
Error: SHELLCHECK_WARNING (CWE-563): [#def82]
/usr/share/doc/readline-devel/rlfe/configure:1335:5: warning[SC2034]: ac_top_srcdir appears unused. Verify use (or export if used externally).
# 1333| *) # Relative name.
# 1334| ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
# 1335|-> ac_top_srcdir=$ac_top_build_prefix$srcdir
# 1336| ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
# 1337| esac
Error: SHELLCHECK_WARNING (CWE-563): [#def83]
/usr/share/doc/readline-devel/rlfe/configure:1338:1: warning[SC2034]: ac_abs_srcdir appears unused. Verify use (or export if used externally).
# 1336| ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
# 1337| esac
# 1338|-> ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
# 1339|
# 1340| cd "$ac_dir" || { ac_status=$?; continue; }
Error: SHELLCHECK_WARNING (CWE-569): [#def84]
/usr/share/doc/readline-devel/rlfe/configure:1474:3: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 1472| } && test -s conftest$ac_exeext && {
# 1473| test "$cross_compiling" = yes ||
# 1474|-> $as_test_x conftest$ac_exeext
# 1475| }; then :
# 1476| ac_retval=0
Error: SHELLCHECK_WARNING (CWE-569): [#def85]
/usr/share/doc/readline-devel/rlfe/configure:1543:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1541| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1542| $as_echo_n "checking for $2... " >&6; }
# 1543|-> if eval \${$3+:} false; then :
# 1544| $as_echo_n "(cached) " >&6
# 1545| else
Error: SHELLCHECK_WARNING (CWE-569): [#def86]
/usr/share/doc/readline-devel/rlfe/configure:1543:16: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1541| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1542| $as_echo_n "checking for $2... " >&6; }
# 1543|-> if eval \${$3+:} false; then :
# 1544| $as_echo_n "(cached) " >&6
# 1545| else
Error: SHELLCHECK_WARNING (CWE-569): [#def87]
/usr/share/doc/readline-devel/rlfe/configure:1610:13: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1608| {
# 1609| as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
# 1610|-> if eval \${$3+:} false; then :
# 1611| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1612| $as_echo_n "checking for $2... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def88]
/usr/share/doc/readline-devel/rlfe/configure:1610:18: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1608| {
# 1609| as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
# 1610|-> if eval \${$3+:} false; then :
# 1611| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1612| $as_echo_n "checking for $2... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def89]
/usr/share/doc/readline-devel/rlfe/configure:1613:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1611| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1612| $as_echo_n "checking for $2... " >&6; }
# 1613|-> if eval \${$3+:} false; then :
# 1614| $as_echo_n "(cached) " >&6
# 1615| fi
Error: SHELLCHECK_WARNING (CWE-569): [#def90]
/usr/share/doc/readline-devel/rlfe/configure:1613:16: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1611| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1612| $as_echo_n "checking for $2... " >&6; }
# 1613|-> if eval \${$3+:} false; then :
# 1614| $as_echo_n "(cached) " >&6
# 1615| fi
Error: SHELLCHECK_WARNING (CWE-569): [#def91]
/usr/share/doc/readline-devel/rlfe/configure:1676:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1674| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1675| $as_echo_n "checking for $2... " >&6; }
# 1676|-> if eval \${$3+:} false; then :
# 1677| $as_echo_n "(cached) " >&6
# 1678| else
Error: SHELLCHECK_WARNING (CWE-569): [#def92]
/usr/share/doc/readline-devel/rlfe/configure:1676:16: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1674| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1675| $as_echo_n "checking for $2... " >&6; }
# 1676|-> if eval \${$3+:} false; then :
# 1677| $as_echo_n "(cached) " >&6
# 1678| else
Error: SHELLCHECK_WARNING (CWE-569): [#def93]
/usr/share/doc/readline-devel/rlfe/configure:1698:11: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 1696| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1697| $as_echo_n "checking for $2... " >&6; }
# 1698|-> if eval \${$3+:} false; then :
# 1699| $as_echo_n "(cached) " >&6
# 1700| else
Error: SHELLCHECK_WARNING (CWE-569): [#def94]
/usr/share/doc/readline-devel/rlfe/configure:1698:16: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 1696| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
# 1697| $as_echo_n "checking for $2... " >&6; }
# 1698|-> if eval \${$3+:} false; then :
# 1699| $as_echo_n "(cached) " >&6
# 1700| else
Error: SHELLCHECK_WARNING (CWE-457): [#def95]
/usr/share/doc/readline-devel/rlfe/configure:1829:6: warning[SC2154]: exit_status is referenced but not assigned.
# 1827| # WARNING: Use '\'' to represent an apostrophe within the trap.
# 1828| # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
# 1829|-> trap 'exit_status=$?
# 1830| # Save into config.log some information that might help in debugging.
# 1831| {
Error: SHELLCHECK_WARNING (CWE-569): [#def96]
/usr/share/doc/readline-devel/rlfe/configure:2000:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 1998| { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
# 1999| $as_echo "$as_me: creating cache $cache_file" >&6;}
# 2000|-> >$cache_file
# 2001| fi
# 2002|
Error: SHELLCHECK_WARNING (CWE-457): [#def97]
/usr/share/doc/readline-devel/rlfe/configure:2011:8: warning[SC2154]: ac_old_set is referenced but not assigned.
# 2009| eval ac_old_val=\$ac_cv_env_${ac_var}_value
# 2010| eval ac_new_val=\$ac_env_${ac_var}_value
# 2011|-> case $ac_old_set,$ac_new_set in
# 2012| set,)
# 2013| { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Error: SHELLCHECK_WARNING (CWE-457): [#def98]
/usr/share/doc/readline-devel/rlfe/configure:2011:20: warning[SC2154]: ac_new_set is referenced but not assigned.
# 2009| eval ac_old_val=\$ac_cv_env_${ac_var}_value
# 2010| eval ac_new_val=\$ac_env_${ac_var}_value
# 2011|-> case $ac_old_set,$ac_new_set in
# 2012| set,)
# 2013| { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Error: SHELLCHECK_WARNING (CWE-457): [#def99]
/usr/share/doc/readline-devel/rlfe/configure:2013:79: warning[SC2154]: ac_old_val is referenced but not assigned (did you mean 'ac_old_val_w'?).
# 2011| case $ac_old_set,$ac_new_set in
# 2012| set,)
# 2013|-> { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
# 2014| $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
# 2015| ac_cache_corrupted=: ;;
Error: SHELLCHECK_WARNING (CWE-457): [#def100]
/usr/share/doc/readline-devel/rlfe/configure:2022:35: warning[SC2154]: ac_new_val is referenced but not assigned (did you mean 'ac_new_val_w'?).
# 2020| ,);;
# 2021| *)
# 2022|-> if test "x$ac_old_val" != "x$ac_new_val"; then
# 2023| # differences in whitespace do not lead to failure.
# 2024| ac_old_val_w=`echo x $ac_old_val`
Error: SHELLCHECK_WARNING (CWE-563): [#def101]
/usr/share/doc/readline-devel/rlfe/configure:2073:1: warning[SC2034]: VERSION appears unused. Verify use (or export if used externally).
# 2071| ac_config_headers="$ac_config_headers config.h"
# 2072|
# 2073|-> VERSION=0.4
# 2074|
# 2075|
Error: SHELLCHECK_WARNING (CWE-563): [#def102]
/usr/share/doc/readline-devel/rlfe/configure:2077:1: warning[SC2034]: old_CFLAGS appears unused. Verify use (or export if used externally).
# 2075|
# 2076|
# 2077|-> old_CFLAGS="$CFLAGS"
# 2078| ac_ext=c
# 2079| ac_cpp='$CPP $CPPFLAGS'
Error: SHELLCHECK_WARNING (CWE-456): [#def103]
/usr/share/doc/readline-devel/rlfe/configure:2085:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2083| if test -n "$ac_tool_prefix"; then
# 2084| # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
# 2085|-> set dummy ${ac_tool_prefix}gcc; ac_word=$2
# 2086| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2087| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-457): [#def104]
/usr/share/doc/readline-devel/rlfe/configure:2099:27: warning[SC2154]: ac_executable_extensions is referenced but not assigned.
# 2097| IFS=$as_save_IFS
# 2098| test -z "$as_dir" && as_dir=.
# 2099|-> for ac_exec_ext in '' $ac_executable_extensions; do
# 2100| if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2101| ac_cv_prog_CC="${ac_tool_prefix}gcc"
Error: SHELLCHECK_WARNING (CWE-569): [#def105]
/usr/share/doc/readline-devel/rlfe/configure:2100:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2098| test -z "$as_dir" && as_dir=.
# 2099| for ac_exec_ext in '' $ac_executable_extensions; do
# 2100|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2101| ac_cv_prog_CC="${ac_tool_prefix}gcc"
# 2102| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-456): [#def106]
/usr/share/doc/readline-devel/rlfe/configure:2125:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2123| ac_ct_CC=$CC
# 2124| # Extract the first word of "gcc", so it can be a program name with args.
# 2125|-> set dummy gcc; ac_word=$2
# 2126| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2127| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def107]
/usr/share/doc/readline-devel/rlfe/configure:2140:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2138| test -z "$as_dir" && as_dir=.
# 2139| for ac_exec_ext in '' $ac_executable_extensions; do
# 2140|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2141| ac_cv_prog_ac_ct_CC="gcc"
# 2142| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-456): [#def108]
/usr/share/doc/readline-devel/rlfe/configure:2178:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2176| if test -n "$ac_tool_prefix"; then
# 2177| # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
# 2178|-> set dummy ${ac_tool_prefix}cc; ac_word=$2
# 2179| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2180| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def109]
/usr/share/doc/readline-devel/rlfe/configure:2193:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2191| test -z "$as_dir" && as_dir=.
# 2192| for ac_exec_ext in '' $ac_executable_extensions; do
# 2193|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2194| ac_cv_prog_CC="${ac_tool_prefix}cc"
# 2195| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-456): [#def110]
/usr/share/doc/readline-devel/rlfe/configure:2218:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2216| if test -z "$CC"; then
# 2217| # Extract the first word of "cc", so it can be a program name with args.
# 2218|-> set dummy cc; ac_word=$2
# 2219| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2220| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def111]
/usr/share/doc/readline-devel/rlfe/configure:2234:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2232| test -z "$as_dir" && as_dir=.
# 2233| for ac_exec_ext in '' $ac_executable_extensions; do
# 2234|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2235| if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
# 2236| ac_prog_rejected=yes
Error: SHELLCHECK_WARNING (CWE-456): [#def112]
/usr/share/doc/readline-devel/rlfe/configure:2249:7: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2247| if test $ac_prog_rejected = yes; then
# 2248| # We found a bogon in the path, so make sure we never use it.
# 2249|-> set dummy $ac_cv_prog_CC
# 2250| shift
# 2251| if test $# != 0; then
Error: SHELLCHECK_WARNING (CWE-569): [#def113]
/usr/share/doc/readline-devel/rlfe/configure:2256:19: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
# 2254| # first if we set CC to just the basename; use the full file name.
# 2255| shift
# 2256|-> ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
# 2257| fi
# 2258| fi
Error: SHELLCHECK_WARNING (CWE-1164): [#def114]
/usr/share/doc/readline-devel/rlfe/configure:2274:18: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 2272| if test -z "$CC"; then
# 2273| if test -n "$ac_tool_prefix"; then
# 2274|-> for ac_prog in cl.exe
# 2275| do
# 2276| # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
Error: SHELLCHECK_WARNING (CWE-456): [#def115]
/usr/share/doc/readline-devel/rlfe/configure:2277:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2275| do
# 2276| # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
# 2277|-> set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# 2278| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2279| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def116]
/usr/share/doc/readline-devel/rlfe/configure:2292:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2290| test -z "$as_dir" && as_dir=.
# 2291| for ac_exec_ext in '' $ac_executable_extensions; do
# 2292|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2293| ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
# 2294| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-1164): [#def117]
/usr/share/doc/readline-devel/rlfe/configure:2318:18: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 2316| if test -z "$CC"; then
# 2317| ac_ct_CC=$CC
# 2318|-> for ac_prog in cl.exe
# 2319| do
# 2320| # Extract the first word of "$ac_prog", so it can be a program name with args.
Error: SHELLCHECK_WARNING (CWE-456): [#def118]
/usr/share/doc/readline-devel/rlfe/configure:2321:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2319| do
# 2320| # Extract the first word of "$ac_prog", so it can be a program name with args.
# 2321|-> set dummy $ac_prog; ac_word=$2
# 2322| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 2323| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def119]
/usr/share/doc/readline-devel/rlfe/configure:2336:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 2334| test -z "$as_dir" && as_dir=.
# 2335| for ac_exec_ext in '' $ac_executable_extensions; do
# 2336|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 2337| ac_cv_prog_ac_ct_CC="$ac_prog"
# 2338| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-456): [#def120]
/usr/share/doc/readline-devel/rlfe/configure:2383:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2381| # Provide some information about the compiler.
# 2382| $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# 2383|-> set X $ac_compile
# 2384| ac_compiler=$2
# 2385| for ac_option in --version -v -V -qversion; do
Error: SHELLCHECK_WARNING (CWE-569): [#def121]
/usr/share/doc/readline-devel/rlfe/configure:3023:36: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 3021| for ac_exec_ext in '' $ac_executable_extensions; do
# 3022| ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
# 3023|-> { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# 3024| # Check for GNU ac_path_GREP and select it if it is found.
# 3025| # Check for GNU $ac_path_GREP
Error: SHELLCHECK_WARNING (CWE-1164): [#def122]
/usr/share/doc/readline-devel/rlfe/configure:3086:20: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 3084| IFS=$as_save_IFS
# 3085| test -z "$as_dir" && as_dir=.
# 3086|-> for ac_prog in egrep; do
# 3087| for ac_exec_ext in '' $ac_executable_extensions; do
# 3088| ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Error: SHELLCHECK_WARNING (CWE-569): [#def123]
/usr/share/doc/readline-devel/rlfe/configure:3089:37: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 3087| for ac_exec_ext in '' $ac_executable_extensions; do
# 3088| ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
# 3089|-> { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# 3090| # Check for GNU ac_path_EGREP and select it if it is found.
# 3091| # Check for GNU $ac_path_EGREP
Error: SHELLCHECK_WARNING (CWE-457): [#def124]
/usr/share/doc/readline-devel/rlfe/configure:3257:9: warning[SC2154]: configure_args is referenced but not assigned.
# 3255| CC=cc
# 3256| export CC
# 3257|-> exec $0 $configure_args
# 3258| fi
# 3259|
Error: SHELLCHECK_WARNING: [#def125]
/usr/share/doc/readline-devel/rlfe/configure:3285:13: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
# 3283| echo "$ac_compile" 1>&6
# 3284|
# 3285|-> as_fn_error $? "Can't run the compiler - sorry" "$LINENO" 5
# 3286| fi
# 3287| rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
Error: SHELLCHECK_WARNING (CWE-456): [#def126]
/usr/share/doc/readline-devel/rlfe/configure:3319:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3317| do
# 3318| # Extract the first word of "$ac_prog", so it can be a program name with args.
# 3319|-> set dummy $ac_prog; ac_word=$2
# 3320| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 3321| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def127]
/usr/share/doc/readline-devel/rlfe/configure:3334:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 3332| test -z "$as_dir" && as_dir=.
# 3333| for ac_exec_ext in '' $ac_executable_extensions; do
# 3334|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 3335| ac_cv_prog_AWK="$ac_prog"
# 3336| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-1164): [#def128]
/usr/share/doc/readline-devel/rlfe/configure:3759:16: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 3757| fi
# 3758|
# 3759|-> for ac_func in getpt
# 3760| do :
# 3761| ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
Error: SHELLCHECK_WARNING (CWE-457): [#def129]
/usr/share/doc/readline-devel/rlfe/configure:3762:11: warning[SC2154]: ac_cv_func_getpt is referenced but not assigned.
# 3760| do :
# 3761| ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
# 3762|-> if test "x$ac_cv_func_getpt" = xyes; then :
# 3763| cat >>confdefs.h <<_ACEOF
# 3764| #define HAVE_GETPT 1
Error: SHELLCHECK_WARNING (CWE-563): [#def130]
/usr/share/doc/readline-devel/rlfe/configure:3772:1: warning[SC2034]: ac_func appears unused. Verify use (or export if used externally).
# 3770|
# 3771| if test -z "$sysvr4ptys"; then
# 3772|-> for ac_func in openpty
# 3773| do :
# 3774| ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Error: SHELLCHECK_WARNING (CWE-1164): [#def131]
/usr/share/doc/readline-devel/rlfe/configure:3772:16: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 3770|
# 3771| if test -z "$sysvr4ptys"; then
# 3772|-> for ac_func in openpty
# 3773| do :
# 3774| ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Error: SHELLCHECK_WARNING (CWE-457): [#def132]
/usr/share/doc/readline-devel/rlfe/configure:3775:11: warning[SC2154]: ac_cv_func_openpty is referenced but not assigned.
# 3773| do :
# 3774| ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
# 3775|-> if test "x$ac_cv_func_openpty" = xyes; then :
# 3776| cat >>confdefs.h <<_ACEOF
# 3777| #define HAVE_OPENPTY 1
Error: SHELLCHECK_WARNING (CWE-456): [#def133]
/usr/share/doc/readline-devel/rlfe/configure:3951:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3949| XTERMPATH=''
# 3950| # Extract the first word of "write", so it can be a program name with args.
# 3951|-> set dummy write; ac_word=$2
# 3952| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 3953| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def134]
/usr/share/doc/readline-devel/rlfe/configure:3968:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 3966| test -z "$as_dir" && as_dir=.
# 3967| for ac_exec_ext in '' $ac_executable_extensions; do
# 3968|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 3969| ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
# 3970| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-456): [#def135]
/usr/share/doc/readline-devel/rlfe/configure:3991:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3989|
# 3990| # Extract the first word of "xterm", so it can be a program name with args.
# 3991|-> set dummy xterm; ac_word=$2
# 3992| { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# 3993| $as_echo_n "checking for $ac_word... " >&6; }
Error: SHELLCHECK_WARNING (CWE-569): [#def136]
/usr/share/doc/readline-devel/rlfe/configure:4008:50: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 4006| test -z "$as_dir" && as_dir=.
# 4007| for ac_exec_ext in '' $ac_executable_extensions; do
# 4008|-> if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
# 4009| ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
# 4010| $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Error: SHELLCHECK_WARNING (CWE-457): [#def137]
/usr/share/doc/readline-devel/rlfe/configure:4078:13: warning[SC2154]: posix is referenced but not assigned.
# 4076| fi
# 4077|
# 4078|-> if test -n "$posix" ; then
# 4079|
# 4080| echo "assuming posix signal definition" 1>&6
Error: SHELLCHECK_WARNING (CWE-569): [#def138]
/usr/share/doc/readline-devel/rlfe/configure:4312:54: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 4310| inttypes.h stdint.h unistd.h
# 4311| do :
# 4312|-> as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
# 4313| ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
# 4314| "
Error: SHELLCHECK_WARNING (CWE-569): [#def139]
/usr/share/doc/readline-devel/rlfe/configure:4317:39: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 4315| if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
# 4316| cat >>confdefs.h <<_ACEOF
# 4317|-> #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
# 4318| _ACEOF
# 4319|
Error: SHELLCHECK_WARNING (CWE-569): [#def140]
/usr/share/doc/readline-devel/rlfe/configure:4327:54: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 4325| for ac_header in sys/stropts.h sys/wait.h sgtty.h sys/select.h
# 4326| do :
# 4327|-> as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
# 4328| ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
# 4329| if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Error: SHELLCHECK_WARNING (CWE-569): [#def141]
/usr/share/doc/readline-devel/rlfe/configure:4331:39: warning[SC2090]: Quotes/backslashes in this variable will not be respected.
# 4329| if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
# 4330| cat >>confdefs.h <<_ACEOF
# 4331|-> #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
# 4332| _ACEOF
# 4333|
Error: SHELLCHECK_WARNING (CWE-1164): [#def142]
/usr/share/doc/readline-devel/rlfe/configure:4338:18: warning[SC2043]: This loop will only ever run once. Bad quoting or missing glob/expansion?
# 4336| done
# 4337|
# 4338|-> for ac_header in term.h
# 4339| do :
# 4340| ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
Error: SHELLCHECK_WARNING (CWE-457): [#def143]
/usr/share/doc/readline-devel/rlfe/configure:4341:11: warning[SC2154]: ac_cv_header_term_h is referenced but not assigned.
# 4339| do :
# 4340| ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
# 4341|-> if test "x$ac_cv_header_term_h" = xyes; then :
# 4342| cat >>confdefs.h <<_ACEOF
# 4343| #define HAVE_TERM_H 1
Error: SHELLCHECK_WARNING (CWE-563): [#def144]
/usr/share/doc/readline-devel/rlfe/configure:4392:18: warning[SC2034]: ac_space appears unused. Verify use (or export if used externally).
# 4390|
# 4391| (set) 2>&1 |
# 4392|-> case $as_nl`(ac_space=' '; set) 2>&1` in #(
# 4393| *${as_nl}ac_space=\ *)
# 4394| # `set' does not quote correctly, so add quotes: double-quote
Error: SHELLCHECK_WARNING (CWE-563): [#def145]
/usr/share/doc/readline-devel/rlfe/configure:4443:1: warning[SC2034]: DEFS appears unused. Verify use (or export if used externally).
# 4441| test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
# 4442|
# 4443|-> DEFS=-DHAVE_CONFIG_H
# 4444|
# 4445| ac_libobjs=
Error: SHELLCHECK_WARNING (CWE-563): [#def146]
/usr/share/doc/readline-devel/rlfe/configure:4447:1: warning[SC2034]: U appears unused. Verify use (or export if used externally).
# 4445| ac_libobjs=
# 4446| ac_ltlibobjs=
# 4447|-> U=
# 4448| for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 4449| # 1. Remove the extension, and $U if already installed.
Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/share/doc/readline-devel/rlfe/configure:4459:1: warning[SC2034]: LTLIBOBJS appears unused. Verify use (or export if used externally).
# 4457| LIBOBJS=$ac_libobjs
# 4458|
# 4459|-> LTLIBOBJS=$ac_ltlibobjs
# 4460|
# 4461|
Error: SHELLCHECK_WARNING (CWE-456): [#def148]
/usr/share/doc/readline-devel/rlfe/configure:4886:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 4884|
# 4885| case $ac_config_files in *"
# 4886|-> "*) set x $ac_config_files; shift; ac_config_files=$*;;
# 4887| esac
# 4888|
Error: SHELLCHECK_WARNING (CWE-456): [#def149]
/usr/share/doc/readline-devel/rlfe/configure:4890:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 4888|
# 4889| case $ac_config_headers in *"
# 4890|-> "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
# 4891| esac
# 4892|
Error: SHELLCHECK_WARNING (CWE-569): [#def150]
/usr/share/doc/readline-devel/rlfe/configure:5287:12: warning[SC2125]: Brace expansions and globs are literal in assignments. Quote it or use an array.
# 5285| # newline sequences.
# 5286|
# 5287|-> ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
# 5288| sed -n '
# 5289| s/.\{148\}/&'"$ac_delim"'/g
Error: SHELLCHECK_WARNING (CWE-457): [#def151]
/usr/share/doc/readline-devel/rlfe/configure:5538:1: warning[SC2154]: extrasub is referenced but not assigned.
# 5536| cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# 5537| ac_sed_extra="$ac_vpsub
# 5538|-> $extrasub
# 5539| _ACEOF
# 5540| cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Error: SHELLCHECK_WARNING: [#def152]
/usr/share/doc/readline-devel/rlfe/configure:5610:15: warning[SC2319]: This $? refers to a condition, not a command. Assign to a variable to avoid it being overwritten.
# 5608|
# 5609| test $ac_write_fail = 0 ||
# 5610|-> as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
# 5611|
# 5612|
Error: CPPCHECK_WARNING: [#def153]
readline-8.2/bind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def154]
readline-8.2/bind.c:981:3: warning[deadcode.DeadStores]: Value stored to 'file' is never read
# 979| int i, file;
# 980|
# 981|-> file = -1;
# 982| if (((file = open (filename, O_RDONLY, 0666)) < 0) || (fstat (file, &finfo) < 0))
# 983| {
Error: CLANG_WARNING: [#def155]
readline-8.2/bind.c:1257:3: warning[deadcode.DeadStores]: Value stored to 'boolvar' is never read
# 1255| int i, llen, boolvar, strvar;
# 1256|
# 1257|-> boolvar = strvar = -1;
# 1258|
# 1259| /* Push parser state. */
Error: CLANG_WARNING: [#def156]
readline-8.2/bind.c:1438:7: warning[deadcode.DeadStores]: Value stored to 'previ' is never read
# 1436| return 0;
# 1437| }
# 1438|-> previ = i;
# 1439| valuearg = args + i;
# 1440| for ( ; args[i] && whitespace (args[i]) == 0; i++)
Error: COMPILER_WARNING (CWE-569): [#def157]
readline-8.2/bind.c: scope_hint: In function ‘_rl_skip_to_delim’
readline-8.2/bind.c:1579:29: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 1579 | for (i = start,passc = 0; c = string[i]; i++)
# | ^
# 1577| int i, c, passc;
# 1578|
# 1579|-> for (i = start,passc = 0; c = string[i]; i++)
# 1580| {
# 1581| if (passc)
Error: COMPILER_WARNING (CWE-563): [#def158]
readline-8.2/bind.c: scope_hint: In function ‘rl_parse_and_bind’
readline-8.2/bind.c:1673:11: warning[-Wunused-variable]: unused variable ‘s’
# 1673 | int s;
# | ^
# 1671| {
# 1672| char *var, *value, *e;
# 1673|-> int s;
# 1674|
# 1675| var = string + i;
Error: CLANG_WARNING: [#def159]
readline-8.2/bind.c:1695:17: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
# 1693| *e = '\0'; /* cut off everything trailing */
# 1694| }
# 1695|-> else if ((i = find_string_var (var)) >= 0)
# 1696| {
# 1697| /* Allow quoted strings in variable values */
Error: COMPILER_WARNING (CWE-569): [#def160]
readline-8.2/bind.c: scope_hint: In function ‘rl_function_dumper’
readline-8.2/bind.c:2803:15: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 2803 | for (i = 0; name = names[i]; i++)
# | ^~~~
# 2801| fprintf (rl_outstream, "\n");
# 2802|
# 2803|-> for (i = 0; name = names[i]; i++)
# 2804| {
# 2805| rl_command_func_t *function;
Error: CPPCHECK_WARNING: [#def161]
readline-8.2/callback.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def162]
readline-8.2/callback.c:142:3: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 140| }
# 141|
# 142|-> eof = 0;
# 143|
# 144| memcpy ((void *)olevel, (void *)_rl_top_level, sizeof (procenv_t));
Error: CLANG_WARNING: [#def163]
readline-8.2/callback.c:185:4: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 183| else if (RL_ISSTATE (RL_STATE_NSEARCH))
# 184| {
# 185|-> eof = _rl_nsearch_callback (_rl_nscxt);
# 186|
# 187| CALLBACK_READ_RETURN ();
Error: CLANG_WARNING: [#def164]
readline-8.2/callback.c:222:4: warning[deadcode.DeadStores]: Value stored to 'eof' is never read
# 220| else if (RL_ISSTATE (RL_STATE_VIMOTION))
# 221| {
# 222|-> eof = _rl_vi_domove_callback (_rl_vimvcxt);
# 223| /* Should handle everything, including cleanup, numeric arguments,
# 224| and turning off RL_STATE_VIMOTION */
Error: CPPCHECK_WARNING: [#def165]
readline-8.2/colors.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def166]
readline-8.2/complete.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def167]
readline-8.2/complete.c:817:15: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 815| WCHAR_T wc;
# 816|
# 817|-> print_len = strlen (to_print);
# 818| end = to_print + print_len + 1;
# 819| memset (&ps, 0, sizeof (mbstate_t));
Error: CLANG_WARNING: [#def168]
readline-8.2/complete.c:1043:4: warning[core.uninitialized.Assign]: The expression is an uninitialized value. The computed value will also be garbage
# 1041| {
# 1042| putc (extension_char, rl_outstream);
# 1043|-> printed_len++;
# 1044| }
# 1045| }
Error: COMPILER_WARNING (CWE-457): [#def169]
readline-8.2/complete.c: scope_hint: In function ‘print_filename’
readline-8.2/complete.c:1043:22: warning[-Wmaybe-uninitialized]: ‘printed_len’ may be used uninitialized
# 1043 | printed_len++;
# | ~~~~~~~~~~~^~
readline-8.2/complete.c:936:7: note: ‘printed_len’ was declared here
# 936 | int printed_len, extension_char, slen, tlen;
# | ^~~~~~~~~~~
# 1041| {
# 1042| putc (extension_char, rl_outstream);
# 1043|-> printed_len++;
# 1044| }
# 1045| }
Error: CLANG_WARNING: [#def170]
readline-8.2/complete.c:1047:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 1045| }
# 1046|
# 1047|-> return printed_len;
# 1048| }
# 1049|
Error: COMPILER_WARNING (CWE-569): [#def171]
readline-8.2/complete.c: scope_hint: In function ‘_rl_find_completion_word’
readline-8.2/complete.c:1151:14: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 1151 | while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY))
# | ^~~~~~~~
# 1149| completion, so use the word break characters to find the
# 1150| substring on which to complete. */
# 1151|-> while (rl_point = MB_PREVCHAR (rl_line_buffer, rl_point, MB_FIND_ANY))
# 1152| {
# 1153| scan = rl_line_buffer[rl_point];
Error: CPPCHECK_WARNING (CWE-562): [#def172]
readline-8.2/complete.c:1280: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1278| {
# 1279| xfree (matches[i]);
# 1280|-> matches[i] = (char *)&dead_slot;
# 1281| }
# 1282| else
Error: COMPILER_WARNING (CWE-563): [#def173]
readline-8.2/complete.c: scope_hint: In function ‘compute_lcd_of_matches’
readline-8.2/complete.c:1323:7: warning[-Wunused-variable]: unused variable ‘v’
# 1323 | int v;
# | ^
# 1321| char *dtext; /* dequoted TEXT, if needed */
# 1322| #if defined (HANDLE_MULTIBYTE)
# 1323|-> int v;
# 1324| size_t v1, v2;
# 1325| mbstate_t ps1, ps2;
Error: CLANG_WARNING: [#def174]
readline-8.2/complete.c:1428:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1426| qsort (match_list+1, matches, sizeof(char *), (QSFUNC *)_rl_qsort_string_compare);
# 1427|
# 1428|-> si = strlen (text);
# 1429| lx = (si <= low) ? si : low; /* check shorter of text and matches */
# 1430| /* Try to preserve the case of what the user typed in the presence of
Error: CLANG_WARNING: [#def175]
readline-8.2/complete.c:1539:3: warning[deadcode.DeadStores]: Value stored to 'common_length' is never read
# 1537| /* Find the length of the prefix common to all items: length as displayed
# 1538| characters (common_length) and as a byte index into the matches (sind) */
# 1539|-> common_length = sind = 0;
# 1540| if (_rl_completion_prefix_display_length > 0)
# 1541| {
Error: CLANG_WARNING: [#def176]
readline-8.2/complete.c:1553:2: warning[deadcode.DeadStores]: Value stored to 'common_length' is never read
# 1551| max -= common_length - ELLIPSIS_LEN;
# 1552| else if (_rl_colored_completion_prefix <= 0)
# 1553|-> common_length = sind = 0;
# 1554| }
# 1555| #if defined (COLOR_SUPPORT)
Error: CLANG_WARNING: [#def177]
readline-8.2/complete.c:1563:2: warning[deadcode.DeadStores]: Value stored to 'common_length' is never read
# 1561| sind = temp ? RL_STRLEN (temp+1) : RL_STRLEN (t); /* want portion after final slash */
# 1562| if (common_length > max || sind > max)
# 1563|-> common_length = sind = 0;
# 1564| }
# 1565| #endif
Error: CLANG_WARNING: [#def178]
readline-8.2/complete.c:1697:7: warning[core.NullDereference]: Array access (from variable 'matches') results in a null pointer dereference
# 1695|
# 1696| /* Handle simple case first. What if there is only one answer? */
# 1697|-> if (matches[1] == 0)
# 1698| {
# 1699| temp = printable_part (matches[0]);
Error: CLANG_WARNING: [#def179]
readline-8.2/complete.c:1935:7: warning[core.NullDereference]: Array access (from variable 'matches') results in a null pointer dereference
# 1933| rl_point = point;
# 1934|
# 1935|-> if (matches[1])
# 1936| {
# 1937| for (i = 1; matches[i]; i++)
Error: CLANG_WARNING: [#def180]
readline-8.2/complete.c:2095:15: warning[core.NullDereference]: Dereference of null pointer
# 2093| if (what_to_do == TAB)
# 2094| {
# 2095|-> if (*matches[0])
# 2096| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
# 2097| }
Error: CLANG_WARNING: [#def181]
readline-8.2/complete.c:2095:16: warning[core.NullDereference]: Array access (from variable 'matches') results in a null pointer dereference
# 2093| if (what_to_do == TAB)
# 2094| {
# 2095|-> if (*matches[0])
# 2096| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
# 2097| }
Error: CLANG_WARNING: [#def182]
readline-8.2/complete.c:2098:16: warning[core.NullDereference]: Dereference of null pointer
# 2096| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
# 2097| }
# 2098|-> else if (*matches[0] && matches[1] == 0)
# 2099| /* should we perform the check only if there are multiple matches? */
# 2100| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
Error: CLANG_WARNING: [#def183]
readline-8.2/complete.c:2098:17: warning[core.NullDereference]: Array access (from variable 'matches') results in a null pointer dereference
# 2096| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
# 2097| }
# 2098|-> else if (*matches[0] && matches[1] == 0)
# 2099| /* should we perform the check only if there are multiple matches? */
# 2100| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
Error: COMPILER_WARNING (CWE-457): [#def184]
readline-8.2/complete.c: scope_hint: In function ‘rl_complete_internal’
readline-8.2/complete.c:2104:14: warning[-Wmaybe-uninitialized]: ‘tlen’ may be used uninitialized
# 2104 | if (mlen >= tlen)
# | ^
readline-8.2/complete.c:2007:7: note: ‘tlen’ was declared here
# 2007 | int tlen, mlen, saved_last_completion_failed;
# | ^~~~
# 2102| {
# 2103| mlen = *matches[0] ? strlen (matches[0]) : 0;
# 2104|-> if (mlen >= tlen)
# 2105| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
# 2106| }
Error: CLANG_WARNING: [#def185]
readline-8.2/complete.c:2144:43: warning[core.NullDereference]: Array access (from variable 'matches') results in a null pointer dereference
# 2142| /* Let's try to insert a single match here if the last completion failed
# 2143| but this attempt returned a single match. */
# 2144|-> if (saved_last_completion_failed && matches[0] && *matches[0] && matches[1] == 0)
# 2145| {
# 2146| insert_match (matches[0], start, matches[1] ? MULT_MATCH : SINGLE_MATCH, "e_char);
Error: COMPILER_WARNING (CWE-569): [#def186]
readline-8.2/complete.c: scope_hint: In function ‘rl_completion_matches’
readline-8.2/complete.c:2235:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 2235 | while (string = (*entry_function) (text, matches))
# | ^~~~~~
# 2233| match_list[1] = (char *)NULL;
# 2234|
# 2235|-> while (string = (*entry_function) (text, matches))
# 2236| {
# 2237| if (RL_SIG_RECEIVED ())
Error: COMPILER_WARNING (CWE-569): [#def187]
readline-8.2/complete.c: scope_hint: In function ‘rl_username_completion_function’
readline-8.2/complete.c:2307:10: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 2307 | while (entry = getpwent ())
# | ^~~~~
# 2305|
# 2306| #if defined (HAVE_GETPWENT)
# 2307|-> while (entry = getpwent ())
# 2308| {
# 2309| /* Null usernames should result in all users as possible completions. */
Error: COMPILER_WARNING (CWE-563): [#def188]
readline-8.2/complete.c: scope_hint: In function ‘rl_menu_complete’
readline-8.2/complete.c:2850:25: warning[-Wunused-variable]: unused variable ‘cstate’
# 2850 | static int delimiter, cstate;
# | ^~~~~~
# 2848| static int orig_start, orig_end;
# 2849| static char quote_char;
# 2850|-> static int delimiter, cstate;
# 2851|
# 2852| /* The first time through, we generate the list of matches and set things
Error: CPPCHECK_WARNING: [#def189]
readline-8.2/display.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def190]
readline-8.2/display.c:767:29: warning[-Wunused-variable]: unused variable ‘n0’
# 767 | int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# | ^~
# 765| int in, out, c, linenum, cursor_linenum;
# 766| int inv_botlin, lb_botlin, lb_linenum, o_cpos;
# 767|-> int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# 768| char *prompt_this_line;
# 769| char cur_face;
Error: COMPILER_WARNING (CWE-563): [#def191]
readline-8.2/display.c:767:33: warning[-Wunused-but-set-variable]: variable ‘num’ set but not used
# 767 | int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# | ^~~
# 765| int in, out, c, linenum, cursor_linenum;
# 766| int inv_botlin, lb_botlin, lb_linenum, o_cpos;
# 767|-> int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# 768| char *prompt_this_line;
# 769| char cur_face;
Error: COMPILER_WARNING (CWE-563): [#def192]
readline-8.2/display.c: scope_hint: In function ‘rl_redisplay’
readline-8.2/display.c:767:38: warning[-Wunused-but-set-variable]: variable ‘prompt_lines_estimate’ set but not used
# 767 | int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# | ^~~~~~~~~~~~~~~~~~~~~
# 765| int in, out, c, linenum, cursor_linenum;
# 766| int inv_botlin, lb_botlin, lb_linenum, o_cpos;
# 767|-> int newlines, lpos, temp, n0, num, prompt_lines_estimate;
# 768| char *prompt_this_line;
# 769| char cur_face;
Error: CLANG_WARNING: [#def193]
readline-8.2/display.c:824:9: warning[deadcode.DeadStores]: Although the value stored to 'inv_botlin' is used in the enclosing expression, the value is never actually read from 'inv_botlin'
# 822| prompt_multibyte_chars = prompt_visible_length - prompt_physical_chars;
# 823|
# 824|-> out = inv_botlin = 0;
# 825|
# 826| /* Mark the line as modified or not. We only do this for history
Error: CLANG_WARNING: [#def194]
readline-8.2/display.c:960:3: warning[deadcode.DeadStores]: Value stored to 'num' is never read
# 958| #if defined (HANDLE_MULTIBYTE)
# 959| memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
# 960|-> num = 0;
# 961| #endif
# 962|
Error: CLANG_WARNING: [#def195]
readline-8.2/display.c:969:3: warning[deadcode.DeadStores]: Value stored to 'prompt_lines_estimate' is never read
# 967|
# 968| /* This is zero-based, used to set the newlines */
# 969|-> prompt_lines_estimate = lpos / _rl_screenwidth;
# 970|
# 971| /* what if lpos is already >= _rl_screenwidth before we start drawing the
Error: COMPILER_WARNING (CWE-457): [#def196]
readline-8.2/display.c: scope_hint: In function ‘rl_redisplay’
readline-8.2/display.c:1147:42: warning[-Wmaybe-uninitialized]: ‘wc_width’ may be used uninitialized
# 1147 | if (_rl_screenwidth < lpos + wc_width)
# | ~~~~~^~~~~~~~~~
readline-8.2/display.c:775:7: note: ‘wc_width’ was declared here
# 775 | int wc_width;
# | ^~~~~~~~
# 1145| _rl_wrapped_multicolumn = 0;
# 1146|
# 1147|-> if (_rl_screenwidth < lpos + wc_width)
# 1148| for (i = lpos; i < _rl_screenwidth; i++)
# 1149| {
Error: CLANG_WARNING: [#def197]
readline-8.2/display.c:1206:16: warning[deadcode.DeadStores]: Although the value stored to 'lb_botlin' is used in the enclosing expression, the value is never actually read from 'lb_botlin'
# 1204| _rl_quick_redisplay = 0;
# 1205|
# 1206|-> inv_botlin = lb_botlin = _rl_inv_botlin = newlines;
# 1207| CHECK_INV_LBREAKS ();
# 1208| inv_lbreaks[newlines+1] = out;
Error: COMPILER_WARNING (CWE-563): [#def198]
readline-8.2/display.c:1655:39: warning[-Wunused-variable]: unused variable ‘twidth’
# 1655 | int temp, lendiff, wsatend, od, nd, twidth, o_cpos;
# | ^~~~~~
# 1653| char *ofd, *ols, *oe, *nfd, *nls, *ne;
# 1654| char *ofdf, *nfdf, *olsf, *nlsf;
# 1655|-> int temp, lendiff, wsatend, od, nd, twidth, o_cpos;
# 1656| int current_invis_chars;
# 1657| int col_lendiff, col_temp;
Error: COMPILER_WARNING (CWE-563): [#def199]
readline-8.2/display.c:1786:19: warning[-Wunused-variable]: unused variable ‘count’
# 1786 | int count, i, j;
# | ^~~~~
# 1784| if (newwidth > 0)
# 1785| {
# 1786|-> int count, i, j;
# 1787| char *optr;
# 1788|
Error: COMPILER_WARNING (CWE-563): [#def200]
readline-8.2/display.c: scope_hint: In function ‘update_line’
readline-8.2/display.c:1787:21: warning[-Wunused-variable]: unused variable ‘optr’
# 1787 | char *optr;
# | ^~~~
# 1785| {
# 1786| int count, i, j;
# 1787|-> char *optr;
# 1788|
# 1789| puts_face (new, new_face, newbytes);
Error: CLANG_WARNING: [#def201]
readline-8.2/display.c:1804:5: warning[deadcode.DeadStores]: Value stored to 'ofdf' is never read
# 1802| nd = newbytes;
# 1803| nfd = new + nd;
# 1804|-> ofdf = old_face + oldbytes;
# 1805| nfdf = new_face + newbytes;
# 1806|
Error: CLANG_WARNING: [#def202]
readline-8.2/display.c:1868:7: warning[deadcode.DeadStores]: Value stored to 'ofdf' is never read
# 1866| nfdf = new_face;
# 1867| ofd = old;
# 1868|-> ofdf = old_face;
# 1869| for (od = 0, oe = ofd; od < omax && *oe; oe++, od++);
# 1870| for (nd = 0, ne = nfd; nd < nmax && *ne; ne++, nd++);
Error: CLANG_WARNING: [#def203]
readline-8.2/display.c:1871:7: warning[deadcode.DeadStores]: Value stored to 'od' is never read
# 1869| for (od = 0, oe = ofd; od < omax && *oe; oe++, od++);
# 1870| for (nd = 0, ne = nfd; nd < nmax && *ne; ne++, nd++);
# 1871|-> od = nd = 0;
# 1872| _rl_move_cursor_relative (0, old, old_face);
# 1873|
Error: CLANG_WARNING: [#def204]
readline-8.2/display.c:1913:4: warning[deadcode.DeadStores]: Value stored to 'new_offset' is never read
# 1911| if (memcmp (old, new, temp) == 0 && memcmp (old_face, new_face, temp) == 0)
# 1912| {
# 1913|-> new_offset = old_offset = temp; /* adding at the end */
# 1914| ofd = old + temp;
# 1915| ofdf = old_face + temp;
Error: CLANG_WARNING: [#def205]
readline-8.2/display.c:1913:17: warning[deadcode.DeadStores]: Although the value stored to 'old_offset' is used in the enclosing expression, the value is never actually read from 'old_offset'
# 1911| if (memcmp (old, new, temp) == 0 && memcmp (old_face, new_face, temp) == 0)
# 1912| {
# 1913|-> new_offset = old_offset = temp; /* adding at the end */
# 1914| ofd = old + temp;
# 1915| ofdf = old_face + temp;
Error: CLANG_WARNING: [#def206]
readline-8.2/display.c:1915:4: warning[deadcode.DeadStores]: Value stored to 'ofdf' is never read
# 1913| new_offset = old_offset = temp; /* adding at the end */
# 1914| ofd = old + temp;
# 1915|-> ofdf = old_face + temp;
# 1916| nfd = new + temp;
# 1917| nfdf = new_face + temp;
Error: CLANG_WARNING: [#def207]
readline-8.2/display.c:1927:8: warning[deadcode.DeadStores]: Value stored to 'old_offset' is never read
# 1925| if (omax == nmax && memcmp (new, old, omax) == 0 && memcmp (new_face, old_face, omax) == 0)
# 1926| {
# 1927|-> old_offset = omax;
# 1928| new_offset = nmax;
# 1929| ofd = old + omax;
Error: CLANG_WARNING: [#def208]
readline-8.2/display.c:1928:8: warning[deadcode.DeadStores]: Value stored to 'new_offset' is never read
# 1926| {
# 1927| old_offset = omax;
# 1928|-> new_offset = nmax;
# 1929| ofd = old + omax;
# 1930| ofdf = old_face + omax;
Error: CLANG_WARNING: [#def209]
readline-8.2/display.c:1930:8: warning[deadcode.DeadStores]: Value stored to 'ofdf' is never read
# 1928| new_offset = nmax;
# 1929| ofd = old + omax;
# 1930|-> ofdf = old_face + omax;
# 1931| nfd = new + nmax;
# 1932| nfdf = new_face + nmax;
Error: CLANG_WARNING: [#def210]
readline-8.2/display.c:1989:4: warning[deadcode.DeadStores]: Value stored to 'ofdf' is never read
# 1987| new_offset = _rl_find_prev_mbchar (new, nfd - new, MB_FIND_ANY);
# 1988| ofd = old + old_offset; /* equal by definition */
# 1989|-> ofdf = old_face + old_offset;
# 1990| nfd = new + new_offset;
# 1991| nfdf = new_face + new_offset;
Error: CLANG_WARNING: [#def211]
readline-8.2/display.c:2047:7: warning[deadcode.DeadStores]: Value stored to 'olsf' is never read
# 2045| {
# 2046| ols = oe;
# 2047|-> olsf = old_face + (ols - old);
# 2048| nls = ne;
# 2049| nlsf = new_face + (nls - new);
Error: CLANG_WARNING: [#def212]
readline-8.2/display.c:2049:7: warning[deadcode.DeadStores]: Value stored to 'nlsf' is never read
# 2047| olsf = old_face + (ols - old);
# 2048| nls = ne;
# 2049|-> nlsf = new_face + (nls - new);
# 2050| }
# 2051| #if defined (HANDLE_MULTIBYTE)
Error: CLANG_WARNING: [#def213]
readline-8.2/display.c:2074:7: warning[deadcode.DeadStores]: Value stored to 'olsf' is never read
# 2072| nls++;
# 2073| }
# 2074|-> olsf = old_face + (ols - old);
# 2075| nlsf = new_face + (nls - new);
# 2076| }
Error: CLANG_WARNING: [#def214]
readline-8.2/display.c:2075:7: warning[deadcode.DeadStores]: Value stored to 'nlsf' is never read
# 2073| }
# 2074| olsf = old_face + (ols - old);
# 2075|-> nlsf = new_face + (nls - new);
# 2076| }
# 2077|
Error: CLANG_WARNING: [#def215]
readline-8.2/display.c:2287:4: warning[deadcode.DeadStores]: Value stored to 'nlsf' is never read
# 2285| lendiff = (nls - nfd) - (ols - ofd);
# 2286|
# 2287|-> nlsf = new_face + (nls - new);
# 2288| olsf = old_face + (ols - old);
# 2289| }
Error: CLANG_WARNING: [#def216]
readline-8.2/display.c:2288:4: warning[deadcode.DeadStores]: Value stored to 'olsf' is never read
# 2286|
# 2287| nlsf = new_face + (nls - new);
# 2288|-> olsf = old_face + (ols - old);
# 2289| }
# 2290| else
Error: COMPILER_WARNING (CWE-563): [#def217]
readline-8.2/display.c: scope_hint: In function ‘rl_forced_update_display’
readline-8.2/display.c:2683:18: warning[-Wunused-variable]: unused variable ‘temp’
# 2683 | register char *temp;
# | ^~~~
# 2681| rl_forced_update_display (void)
# 2682| {
# 2683|-> register char *temp;
# 2684|
# 2685| if (visible_line)
Error: COMPILER_WARNING (CWE-1164): [#def218]
readline-8.2/display.c: scope_hint: At top level
readline-8.2/display.c:3236:1: warning[-Wunused-function]: ‘insert_some_chars’ defined but not used
# 3236 | insert_some_chars (char *string, int count, int col)
# | ^~~~~~~~~~~~~~~~~
# 3234| /* Insert COUNT characters from STRING to the output stream at column COL. */
# 3235| static void
# 3236|-> insert_some_chars (char *string, int count, int col)
# 3237| {
# 3238| open_some_spaces (col);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def219]
readline-8.2/funmap.c: scope_hint: In function ‘rl_funmap_names’
readline-8.2/funmap.c:271:3: warning[-Wanalyzer-null-argument]: use of NULL ‘result’ where non-null expected
readline-8.2/funmap.c:33: included_from: Included from here.
/usr/include/stdlib.h:970:13: note: argument 1 of ‘qsort’ must be non-null
# 269| }
# 270|
# 271|-> qsort (result, result_index, sizeof (char *), (QSFUNC *)_rl_qsort_string_compare);
# 272| return (result);
# 273| }
Error: CLANG_WARNING: [#def220]
readline-8.2/funmap.c:271:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 269| }
# 270|
# 271|-> qsort (result, result_index, sizeof (char *), (QSFUNC *)_rl_qsort_string_compare);
# 272| return (result);
# 273| }
Error: CPPCHECK_WARNING: [#def221]
readline-8.2/histexpand.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-569): [#def222]
readline-8.2/histexpand.c: scope_hint: In function ‘get_history_event’
readline-8.2/histexpand.c:213:25: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 213 | for (local_index = i; c = string[i]; i++)
# | ^
# 211|
# 212| /* Only a closing `?' or a newline delimit a substring search string. */
# 213|-> for (local_index = i; c = string[i]; i++)
# 214| {
# 215| #if defined (HANDLE_MULTIBYTE)
Error: COMPILER_WARNING (CWE-563): [#def223]
readline-8.2/histexpand.c: scope_hint: In function ‘history_expand_internal’
readline-8.2/histexpand.c:682:48: warning[-Wunused-but-set-variable]: variable ‘ws’ set but not used
# 682 | int delimiter, failed, si, l_temp, ws, we;
# | ^~
# 680| {
# 681| char *new_event;
# 682|-> int delimiter, failed, si, l_temp, ws, we;
# 683|
# 684| if (c == 's')
Error: CLANG_WARNING: [#def224]
readline-8.2/histexpand.c:781:7: warning[deadcode.DeadStores]: Value stored to 'ws' is never read
# 779| for (; temp[si] && fielddelim (temp[si]); si++)
# 780| ;
# 781|-> ws = si;
# 782| we = history_tokenize_word (temp, si);
# 783| }
Error: CLANG_WARNING: [#def225]
readline-8.2/histexpand.c:983:4: warning[deadcode.DeadStores]: Value stored to 'squote' is never read
# 981| {
# 982| hist_string_extract_single_quoted (string, &i, 0);
# 983|-> squote = 0;
# 984| if (string[i])
# 985| i++;
Error: CLANG_WARNING: [#def226]
readline-8.2/histexpand.c:1314:3: warning[deadcode.DeadStores]: Value stored to 'first' is never read
# 1312|
# 1313| /* The range of words to return doesn't exist yet. */
# 1314|-> first = last = 0;
# 1315| result = (char *)NULL;
# 1316|
Error: CLANG_WARNING: [#def227]
readline-8.2/histexpand.c:1314:11: warning[deadcode.DeadStores]: Although the value stored to 'last' is used in the enclosing expression, the value is never actually read from 'last'
# 1312|
# 1313| /* The range of words to return doesn't exist yet. */
# 1314|-> first = last = 0;
# 1315| result = (char *)NULL;
# 1316|
Error: GCC_ANALYZER_WARNING (CWE-688): [#def228]
readline-8.2/histexpand.c: scope_hint: In function ‘history_arg_extract’
readline-8.2/histexpand.c:1452:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
readline-8.2/histexpand.c: scope_hint: In function ‘history_arg_extract’
readline-8.2/histexpand.c:46: included_from: Included from here.
readline-8.2/histexpand.c:1484:7: note: in expansion of macro ‘member’
readline-8.2/histexpand.c:1484:7: note: in expansion of macro ‘member’
readline-8.2/histexpand.c: scope_hint: In function ‘history_arg_extract’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1450| {
# 1451| for (size = 0, i = first; i < last; i++)
# 1452|-> size += strlen (list[i]) + 1;
# 1453| result = (char *)xmalloc (size + 1);
# 1454| result[0] = '\0';
Error: CPPCHECK_WARNING: [#def229]
readline-8.2/histfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def230]
readline-8.2/histfile.c:187:1: warning[-Wunused-function]: ‘history_backupfile’ defined but not used
# 187 | history_backupfile (const char *filename)
# | ^~~~~~~~~~~~~~~~~~
# 185|
# 186| static char *
# 187|-> history_backupfile (const char *filename)
# 188| {
# 189| const char *fn;
Error: COMPILER_WARNING (CWE-563): [#def231]
readline-8.2/histfile.c: scope_hint: In function ‘history_backupfile’
readline-8.2/histfile.c:193:15: warning[-Wunused-variable]: unused variable ‘fs’
# 193 | struct stat fs;
# | ^~
# 191| size_t len;
# 192| ssize_t n;
# 193|-> struct stat fs;
# 194|
# 195| fn = filename;
Error: COMPILER_WARNING (CWE-563): [#def232]
readline-8.2/histfile.c: scope_hint: In function ‘history_tempfile’
readline-8.2/histfile.c:221:15: warning[-Wunused-variable]: unused variable ‘fs’
# 221 | struct stat fs;
# | ^~
# 219| size_t len;
# 220| ssize_t n;
# 221|-> struct stat fs;
# 222| int pid;
# 223|
Error: COMPILER_WARNING (CWE-1164): [#def233]
readline-8.2/histfile.c: scope_hint: At top level
readline-8.2/histfile.c:473:1: warning[-Wunused-function]: ‘histfile_backup’ defined but not used
# 473 | histfile_backup (const char *filename, const char *back)
# | ^~~~~~~~~~~~~~~
# 471| (e.g., ~/.bash_history -> .histfiles/.bash_history.$HOSTNAME) */
# 472| static int
# 473|-> histfile_backup (const char *filename, const char *back)
# 474| {
# 475| #if defined (HAVE_READLINK)
Error: COMPILER_WARNING (CWE-563): [#def234]
readline-8.2/histfile.c: scope_hint: In function ‘history_truncate_file’
readline-8.2/histfile.c:521:49: warning[-Wunused-but-set-variable]: variable ‘r’ set but not used
# 521 | int file, chars_read, rv, orig_lines, exists, r;
# | ^
# 519| {
# 520| char *buffer, *filename, *tempname, *bp, *bp1; /* bp1 == bp+1 */
# 521|-> int file, chars_read, rv, orig_lines, exists, r;
# 522| struct stat finfo, nfinfo;
# 523| size_t file_size;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def235]
readline-8.2/histfile.c: scope_hint: In function ‘history_truncate_file’
readline-8.2/histfile.c:646:46: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘orig_lines’
# 644| FREE (buffer);
# 645|
# 646|-> history_lines_written_to_file = orig_lines - lines;
# 647|
# 648| if (rv == 0 && filename && tempname)
Error: COMPILER_WARNING (CWE-457): [#def236]
readline-8.2/histfile.c: scope_hint: In function ‘history_truncate_file’
readline-8.2/histfile.c:646:46: warning[-Wmaybe-uninitialized]: ‘orig_lines’ may be used uninitialized
# 646 | history_lines_written_to_file = orig_lines - lines;
# | ~~~~~~~~~~~^~~~~~~
readline-8.2/histfile.c:521:29: note: ‘orig_lines’ was declared here
# 521 | int file, chars_read, rv, orig_lines, exists, r;
# | ^~~~~~~~~~
# 644| FREE (buffer);
# 645|
# 646|-> history_lines_written_to_file = orig_lines - lines;
# 647|
# 648| if (rv == 0 && filename && tempname)
Error: CLANG_WARNING: [#def237]
readline-8.2/histfile.c:646:46: warning[core.UndefinedBinaryOperatorResult]: The left operand of '-' is a garbage value
# 644| FREE (buffer);
# 645|
# 646|-> history_lines_written_to_file = orig_lines - lines;
# 647|
# 648| if (rv == 0 && filename && tempname)
Error: CLANG_WARNING: [#def238]
readline-8.2/histfile.c:665:5: warning[deadcode.DeadStores]: Value stored to 'r' is never read
# 663| owned by root. */
# 664| if (rv == 0 && exists && SHOULD_CHOWN (finfo, nfinfo))
# 665|-> r = chown (filename, finfo.st_uid, finfo.st_gid);
# 666| #endif
# 667|
Error: COMPILER_WARNING (CWE-563): [#def239]
readline-8.2/histfile.c: scope_hint: In function ‘history_do_write’
readline-8.2/histfile.c:683:22: warning[-Wunused-variable]: unused variable ‘nfinfo’
# 683 | struct stat finfo, nfinfo;
# | ^~~~~~
# 681| char *output, *tempname, *histname;
# 682| int file, mode, rv, exists;
# 683|-> struct stat finfo, nfinfo;
# 684| #ifdef HISTORY_USE_MMAP
# 685| size_t cursize;
Error: CLANG_WARNING: [#def240]
readline-8.2/histfile.c:809:5: warning[deadcode.DeadStores]: Value stored to 'mode' is never read
# 807| owned by root. */
# 808| if (rv == 0 && exists)
# 809|-> mode = chown (histname, finfo.st_uid, finfo.st_gid);
# 810| #endif
# 811|
Error: CPPCHECK_WARNING: [#def241]
readline-8.2/history.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def242]
readline-8.2/history.c: scope_hint: In function ‘add_history’
readline-8.2/history.c:286:20: warning[-Wunused-variable]: unused variable ‘i’
# 286 | register int i;
# | ^
# 284| if (history_stifled && (history_length == history_max_entries))
# 285| {
# 286|-> register int i;
# 287|
# 288| /* If the history is stifled, and history_length is zero,
Error: COMPILER_WARNING (CWE-563): [#def243]
readline-8.2/history.c: scope_hint: In function ‘remove_history’
readline-8.2/history.c:489:16: warning[-Wunused-variable]: unused variable ‘i’
# 489 | register int i;
# | ^
# 487| {
# 488| HIST_ENTRY *return_value;
# 489|-> register int i;
# 490| #if 1
# 491| int nentries;
Error: CPPCHECK_WARNING: [#def244]
readline-8.2/histsearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-569): [#def245]
readline-8.2/histsearch.c: scope_hint: In function ‘_hs_history_patsearch’
readline-8.2/histsearch.c:212:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 212 | if (unescaped_backslash = (string[ret] == '\\'))
# | ^~~~~~~~~~~~~~~~~~~
# 210| /* fnmatch is required to reject a pattern that ends with an unescaped
# 211| backslash */
# 212|-> if (unescaped_backslash = (string[ret] == '\\'))
# 213| {
# 214| while (ret > 0 && string[--ret] == '\\')
Error: CPPCHECK_WARNING: [#def246]
readline-8.2/input.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def247]
readline-8.2/input.c:277:3: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 275| #endif
# 276|
# 277|-> result = -1;
# 278| errno = 0;
# 279| #if defined (FIONREAD)
Error: CLANG_WARNING: [#def248]
readline-8.2/input.c:673:16: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 671| for `rl_timeout' and set `tmout_status = 1'. */
# 672| tmout_status = rl_timeout_remaining (&sec, &usec);
# 673|-> tmout.tv_sec = sec;
# 674| tmout.tv_usec = usec;
# 675|
Error: COMPILER_WARNING (CWE-569): [#def249]
readline-8.2/input.c: scope_hint: In function ‘rl_read_key’
readline-8.2/input.c:766:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 766 | if (c = _rl_next_macro_key ())
# | ^
# 764| {
# 765| /* If input is coming from a macro, then use that. */
# 766|-> if (c = _rl_next_macro_key ())
# 767| return ((unsigned char)c);
# 768|
Error: COMPILER_WARNING (CWE-563): [#def250]
readline-8.2/input.c:811:12: warning[-Wunused-variable]: unused variable ‘empty_set’
# 811 | sigset_t empty_set;
# | ^~~~~~~~~
# 809| int fd;
# 810| #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
# 811|-> sigset_t empty_set;
# 812| fd_set readfds;
# 813| #endif
Error: CLANG_WARNING: [#def251]
readline-8.2/input.c:840:7: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 838| return (_getch ()); /* "There is no error return." */
# 839| #endif
# 840|-> result = 0;
# 841| #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
# 842| /* At this point, if we have pselect, we're using select/pselect for the
Error: COMPILER_WARNING (CWE-1164): [#def252]
readline-8.2/input.c: scope_hint: In function ‘rl_getc’
readline-8.2/input.c:896:1: warning[-Wunused-label]: label ‘handle_error’ defined but not used
# 896 | handle_error:
# | ^~~~~~~~~~~~
# 894| /* fprintf(stderr, "rl_getc: result = %d errno = %d\n", result, errno); */
# 895|
# 896|-> handle_error:
# 897| osig = _rl_caught_signal;
# 898| ostate = rl_readline_state;
Error: CPPCHECK_WARNING: [#def253]
readline-8.2/isearch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def254]
readline-8.2/isearch.c: scope_hint: In function ‘_rl_isearch_dispatch’
readline-8.2/isearch.c:343:37: warning[-Wunused-variable]: unused variable ‘incr’
# 343 | int n, wstart, wlen, limit, cval, incr;
# | ^~~~
# 341| _rl_isearch_dispatch (_rl_search_cxt *cxt, int c)
# 342| {
# 343|-> int n, wstart, wlen, limit, cval, incr;
# 344| char *paste;
# 345| size_t pastelen;
Error: CLANG_WARNING: [#def255]
readline-8.2/isearch.c:362:89: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
# 360| /* XXX - experimental code to allow users to bracketed-paste into the search
# 361| string even when ESC is one of the isearch-terminators. Not perfect yet. */
# 362|-> if (_rl_enable_bracketed_paste && c == ESC && strchr (cxt->search_terminators, c) && (n = _rl_nchars_available ()) > (BRACK_PASTE_SLEN-1))
# 363| {
# 364| j = _rl_read_bracketed_paste_prefix (c);
Error: COMPILER_WARNING (CWE-563): [#def256]
readline-8.2/isearch.c: scope_hint: In function ‘rl_search_history’
readline-8.2/isearch.c:848:7: warning[-Wunused-but-set-variable]: variable ‘c’ set but not used
# 848 | int c, r;
# | ^
# 846| {
# 847| _rl_search_cxt *cxt; /* local for now, but saved globally */
# 848|-> int c, r;
# 849|
# 850| RL_SETSTATE(RL_STATE_ISEARCH);
Error: CLANG_WARNING: [#def257]
readline-8.2/isearch.c:860:3: warning[deadcode.DeadStores]: Value stored to 'r' is never read
# 858| return (0);
# 859|
# 860|-> r = -1;
# 861| for (;;)
# 862| {
Error: CLANG_WARNING: [#def258]
readline-8.2/isearch.c:863:7: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 861| for (;;)
# 862| {
# 863|-> c = _rl_search_getchar (cxt);
# 864| /* We might want to handle EOF here (c == 0) */
# 865| r = _rl_isearch_dispatch (cxt, cxt->lastc);
Error: COMPILER_WARNING (CWE-563): [#def259]
readline-8.2/isearch.c: scope_hint: In function ‘_rl_isearch_callback’
readline-8.2/isearch.c:885:7: warning[-Wunused-but-set-variable]: variable ‘c’ set but not used
# 885 | int c, r;
# | ^
# 883| _rl_isearch_callback (_rl_search_cxt *cxt)
# 884| {
# 885|-> int c, r;
# 886|
# 887| c = _rl_search_getchar (cxt);
Error: CLANG_WARNING: [#def260]
readline-8.2/isearch.c:887:3: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 885| int c, r;
# 886|
# 887|-> c = _rl_search_getchar (cxt);
# 888| /* We might want to handle EOF here */
# 889| r = _rl_isearch_dispatch (cxt, cxt->lastc);
Error: CPPCHECK_WARNING: [#def261]
readline-8.2/kill.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-674): [#def262]
readline-8.2/kill.c: scope_hint: In function ‘rl_backward_kill_word’
readline-8.2/kill.c:202:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 200|
# 201| if (count < 0)
# 202|-> return (rl_backward_kill_word (-count, key));
# 203| else
# 204| {
Error: GCC_ANALYZER_WARNING (CWE-674): [#def263]
readline-8.2/kill.c: scope_hint: In function ‘rl_kill_word’
readline-8.2/kill.c:225:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 223|
# 224| if (count < 0)
# 225|-> return (rl_kill_word (-count, key));
# 226| else
# 227| {
Error: GCC_ANALYZER_WARNING (CWE-674): [#def264]
readline-8.2/kill.c: scope_hint: In function ‘rl_copy_backward_word’
readline-8.2/kill.c:494:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 492| {
# 493| if (count < 0)
# 494|-> return (rl_copy_backward_word (-count, key));
# 495|
# 496| return (_rl_copy_word_as_kill (count, 1));
Error: GCC_ANALYZER_WARNING (CWE-674): [#def265]
readline-8.2/kill.c: scope_hint: In function ‘rl_copy_forward_word’
readline-8.2/kill.c:503:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 501| {
# 502| if (count < 0)
# 503|-> return (rl_copy_forward_word (-count, key));
# 504|
# 505| return (_rl_copy_word_as_kill (count, -1));
Error: COMPILER_WARNING (CWE-563): [#def266]
readline-8.2/kill.c: scope_hint: In function ‘rl_vi_yank_pop’
readline-8.2/kill.c:562:13: warning[-Wunused-variable]: unused variable ‘origpoint’
# 562 | int l, n, origpoint;
# | ^~~~~~~~~
# 560| rl_vi_yank_pop (int count, int key)
# 561| {
# 562|-> int l, n, origpoint;
# 563|
# 564| if (((rl_last_func != rl_vi_yank_pop) && (rl_last_func != rl_vi_put)) ||
Error: CLANG_WARNING: [#def267]
readline-8.2/kill.c:615:2: warning[deadcode.DeadStores]: Value stored to 'entry' is never read
# 613| {
# 614| for (i = 0; i < history_skip; i++)
# 615|-> entry = previous_history ();
# 616| }
# 617|
Error: COMPILER_WARNING (CWE-563): [#def268]
readline-8.2/kill.c:759:15: warning[-Wunused-variable]: unused variable ‘c’
# 759 | int retval, c;
# | ^
# 757| rl_bracketed_paste_begin (int count, int key)
# 758| {
# 759|-> int retval, c;
# 760| size_t len, cap;
# 761| char *buf;
Error: COMPILER_WARNING (CWE-563): [#def269]
readline-8.2/kill.c: scope_hint: In function ‘rl_bracketed_paste_begin’
readline-8.2/kill.c:760:15: warning[-Wunused-variable]: unused variable ‘cap’
# 760 | size_t len, cap;
# | ^~~
# 758| {
# 759| int retval, c;
# 760|-> size_t len, cap;
# 761| char *buf;
# 762|
Error: COMPILER_WARNING (CWE-563): [#def270]
readline-8.2/kill.c: scope_hint: In function ‘_rl_read_bracketed_paste_prefix’
readline-8.2/kill.c:777:17: warning[-Wunused-variable]: unused variable ‘j’
# 777 | int key, ind, j;
# | ^
# 775| {
# 776| char pbuf[BRACK_PASTE_SLEN+1], *pbpref;
# 777|-> int key, ind, j;
# 778|
# 779| pbpref = BRACK_PASTE_PREF; /* XXX - debugging */
Error: CLANG_WARNING: [#def271]
readline-8.2/kill.c:800:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 798| while (ind >= 0)
# 799| _rl_unget_char (pbuf[ind--]);
# 800|-> return (key < 0 ? key : 0);
# 801| }
# 802| return (key < 0 ? key : 1);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def272]
readline-8.2/kill.c: scope_hint: In function ‘_rl_read_bracketed_paste_prefix’
readline-8.2/kill.c:800:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘key’
readline-8.2/kill.c:46: included_from: Included from here.
readline-8.2/kill.c:784:11: note: in expansion of macro ‘RL_ISSTATE’
# 798| while (ind >= 0)
# 799| _rl_unget_char (pbuf[ind--]);
# 800|-> return (key < 0 ? key : 0);
# 801| }
# 802| return (key < 0 ? key : 1);
Error: COMPILER_WARNING (CWE-457): [#def273]
readline-8.2/kill.c: scope_hint: In function ‘_rl_read_bracketed_paste_prefix’
readline-8.2/kill.c:800:29: warning[-Wmaybe-uninitialized]: ‘key’ may be used uninitialized
# 800 | return (key < 0 ? key : 0);
# | ~~~~~~~~~~~~~~~^~~~
readline-8.2/kill.c:777:7: note: ‘key’ was declared here
# 777 | int key, ind, j;
# | ^~~
# 798| while (ind >= 0)
# 799| _rl_unget_char (pbuf[ind--]);
# 800|-> return (key < 0 ? key : 0);
# 801| }
# 802| return (key < 0 ? key : 1);
Error: CLANG_WARNING: [#def274]
readline-8.2/kill.c:823:50: warning[deadcode.DeadStores]: Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'
# 821|
# 822| /* read pasted data with bracketed-paste mode enabled. */
# 823|-> if (_rl_enable_bracketed_paste && c == ESC && (r = _rl_read_bracketed_paste_prefix (c)) == 1)
# 824| {
# 825| pbuf = _rl_bracketed_text (&pblen);
Error: COMPILER_WARNING (CWE-563): [#def275]
readline-8.2/kill.c: scope_hint: In function ‘_rl_bracketed_read_mbstring’
readline-8.2/kill.c:849:10: warning[-Wunused-variable]: unused variable ‘r’
# 849 | int c, r;
# | ^
# 847| _rl_bracketed_read_mbstring (char *mb, int mlen)
# 848| {
# 849|-> int c, r;
# 850|
# 851| c = _rl_bracketed_read_key ();
Error: CPPCHECK_WARNING: [#def276]
readline-8.2/mbutil.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-1164): [#def277]
readline-8.2/mbutil.c: scope_hint: At top level
readline-8.2/mbutil.c:87:1: warning[-Wunused-function]: ‘_rl_utf8_mblen’ defined but not used
# 87 | _rl_utf8_mblen (const char *s, size_t n)
# | ^~~~~~~~~~~~~~
# 85| at S. Encoding is UTF-8. */
# 86| static int
# 87|-> _rl_utf8_mblen (const char *s, size_t n)
# 88| {
# 89| unsigned char c, c1, c2, c3;
Error: CLANG_WARNING: [#def278]
readline-8.2/mbutil.c:158:3: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 156| WCHAR_T wc;
# 157|
# 158|-> tmp = 0;
# 159|
# 160| memset(&ps, 0, sizeof (mbstate_t));
Error: COMPILER_WARNING (CWE-563): [#def279]
readline-8.2/mbutil.c: scope_hint: In function ‘_rl_find_prev_utf8char’
readline-8.2/mbutil.c:247:9: warning[-Wunused-variable]: unused variable ‘s’
# 247 | char *s;
# | ^
# 245| _rl_find_prev_utf8char (char *string, int seed, int find_non_zero)
# 246| {
# 247|-> char *s;
# 248| unsigned char b;
# 249| int save, prev;
Error: CLANG_WARNING: [#def280]
readline-8.2/mbutil.c:309:10: warning[deadcode.DeadStores]: Although the value stored to 'non_zero_prev' is used in the enclosing expression, the value is never actually read from 'non_zero_prev'
# 307| return length;
# 308|
# 309|-> prev = non_zero_prev = point = 0;
# 310| while (point < seed)
# 311| {
Error: CLANG_WARNING: [#def281]
readline-8.2/mbutil.c:425:3: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 423| int length, pos;
# 424|
# 425|-> tmp = 0;
# 426| pos = 0;
# 427| length = strlen(string);
Error: CPPCHECK_WARNING: [#def282]
readline-8.2/misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def283]
readline-8.2/misc.c: scope_hint: In function ‘_rl_free_saved_history_line’
readline-8.2/misc.c:385:14: warning[-Wunused-variable]: unused variable ‘orig’
# 385 | UNDO_LIST *orig;
# | ^~~~
# 383| _rl_free_saved_history_line (void)
# 384| {
# 385|-> UNDO_LIST *orig;
# 386|
# 387| if (_rl_saved_line_for_history)
Error: COMPILER_WARNING (CWE-569): [#def284]
readline-8.2/misc.c: scope_hint: In function ‘_rl_revert_previous_lines’
readline-8.2/misc.c:460:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 460 | if (ul = (UNDO_LIST *)entry->data)
# | ^~
# 458| while (entry)
# 459| {
# 460|-> if (ul = (UNDO_LIST *)entry->data)
# 461| {
# 462| if (ul == saved_undo_list)
Error: COMPILER_WARNING (CWE-569): [#def285]
readline-8.2/misc.c: scope_hint: In function ‘rl_clear_history’
readline-8.2/misc.c:520:11: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 520 | if (ul = (UNDO_LIST *)hent->data)
# | ^~
# 518| {
# 519| hent = hlist[i];
# 520|-> if (ul = (UNDO_LIST *)hent->data)
# 521| {
# 522| if (ul == saved_undo_list)
Error: CPPCHECK_WARNING: [#def286]
readline-8.2/nls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def287]
readline-8.2/nls.c: scope_hint: In function ‘utf8locale’
readline-8.2/nls.c:110:10: warning[-Wunused-variable]: unused variable ‘len’
# 110 | size_t len;
# | ^~~
# 108| {
# 109| char *cp;
# 110|-> size_t len;
# 111|
# 112| #if HAVE_LANGINFO_CODESET
Error: COMPILER_WARNING (CWE-1164): [#def288]
readline-8.2/nls.c: scope_hint: At top level
readline-8.2/nls.c:286:1: warning[-Wunused-function]: ‘find_codeset’ defined but not used
# 286 | find_codeset (char *name, size_t *lenp)
# | ^~~~~~~~~~~~
# 284| /* Isolate codeset portion of locale specification. */
# 285| static char *
# 286|-> find_codeset (char *name, size_t *lenp)
# 287| {
# 288| char *cp, *language, *result;
Error: CPPCHECK_WARNING: [#def289]
readline-8.2/parens.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def290]
readline-8.2/parens.c: scope_hint: In function ‘rl_insert_close’
readline-8.2/parens.c:118:36: warning[-Wunused-but-set-variable]: variable ‘ready’ set but not used
# 118 | int orig_point, match_point, ready;
# | ^~~~~
# 116| {
# 117| #if defined (HAVE_SELECT)
# 118|-> int orig_point, match_point, ready;
# 119| struct timeval timer;
# 120| fd_set readfds;
Error: CLANG_WARNING: [#def291]
readline-8.2/parens.c:141:7: warning[deadcode.DeadStores]: Value stored to 'ready' is never read
# 139| ready = _rl_timeout_select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer, NULL);
# 140| # else
# 141|-> ready = select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer);
# 142| # endif
# 143| rl_point = orig_point;
Error: COMPILER_WARNING (CWE-563): [#def292]
readline-8.2/readline.c:76: included_from: Included from here.
readline-8.2/parse-colors.h:44:14: warning[-Wunused-variable]: ‘color_buf’ defined but not used
# 44 | static char *color_buf;
# | ^~~~~~~~~
# 42|
# 43| /* Buffer for color sequences */
# 44|-> static char *color_buf;
# 45|
# 46| #endif /* !_PARSE_COLORS_H_ */
Error: CPPCHECK_WARNING: [#def293]
readline-8.2/readline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def294]
readline-8.2/readline.c:567:21: warning[-Wunused-variable]: unused variable ‘eof_found’
# 567 | static int lastc, eof_found;
# | ^~~~~~~~~
# 565| #endif
# 566| {
# 567|-> static int lastc, eof_found;
# 568| int c, code, lk, r;
# 569|
Error: COMPILER_WARNING (CWE-563): [#def295]
readline-8.2/readline.c: scope_hint: In function ‘readline_internal_char’
readline-8.2/readline.c:568:20: warning[-Wunused-but-set-variable]: variable ‘r’ set but not used
# 568 | int c, code, lk, r;
# | ^
# 566| {
# 567| static int lastc, eof_found;
# 568|-> int c, code, lk, r;
# 569|
# 570| lastc = EOF;
Error: CLANG_WARNING: [#def296]
readline-8.2/readline.c:675:7: warning[deadcode.DeadStores]: Value stored to 'r' is never read
# 673|
# 674| lastc = c;
# 675|-> r = _rl_dispatch ((unsigned char)c, _rl_keymap);
# 676| RL_CHECK_SIGNALS ();
# 677|
Error: CLANG_WARNING: [#def297]
readline-8.2/readline.c:689:4: warning[deadcode.DeadStores]: Value stored to 'r' is never read
# 687| rl_dispatching = 1;
# 688| RL_SETSTATE(RL_STATE_DISPATCHING);
# 689|-> r = (*(_rl_command_to_execute->func)) (_rl_command_to_execute->count, _rl_command_to_execute->key);
# 690| _rl_command_to_execute = 0;
# 691| RL_UNSETSTATE(RL_STATE_DISPATCHING);
Error: COMPILER_WARNING (CWE-1164): [#def298]
readline-8.2/readline.c: scope_hint: At top level
readline-8.2/readline.c:1343:1: warning[-Wunused-function]: ‘reset_default_bindings’ defined but not used
# 1343 | reset_default_bindings (void)
# | ^~~~~~~~~~~~~~~~~~~~~~
# 1341| interested in back to rl_insert and read the new ones. */
# 1342| static void
# 1343|-> reset_default_bindings (void)
# 1344| {
# 1345| if (_rl_bind_stty_chars)
Error: CPPCHECK_WARNING: [#def299]
readline-8.2/search.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def300]
readline-8.2/search.c:334:43: warning[deadcode.DeadStores]: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
# 332| number of chars in the input queue is enough for the bracketed paste
# 333| prefix and hope for the best. */
# 334|-> if (_rl_enable_bracketed_paste && ((n = _rl_nchars_available ()) >= (BRACK_PASTE_SLEN-1)))
# 335| {
# 336| if (_rl_read_bracketed_paste_prefix (c) == 1)
Error: CLANG_WARNING: [#def301]
readline-8.2/search.c:421:3: warning[deadcode.DeadStores]: Value stored to 'r' is never read
# 419|
# 420| /* Read the search string. */
# 421|-> r = 0;
# 422| while (1)
# 423| {
Error: COMPILER_WARNING (CWE-563): [#def302]
readline-8.2/search.c:533:7: warning[-Wunused-but-set-variable]: variable ‘had_saved_line’ set but not used
# 533 | int had_saved_line;
# | ^~~~~~~~~~~~~~
# 531| HIST_ENTRY *temp;
# 532| int ret, oldpos, newcol;
# 533|-> int had_saved_line;
# 534| char *t;
# 535|
Error: COMPILER_WARNING (CWE-563): [#def303]
readline-8.2/search.c: scope_hint: In function ‘rl_history_search_internal’
readline-8.2/search.c:534:9: warning[-Wunused-variable]: unused variable ‘t’
# 534 | char *t;
# | ^
# 532| int ret, oldpos, newcol;
# 533| int had_saved_line;
# 534|-> char *t;
# 535|
# 536| had_saved_line = _rl_saved_line_for_history != 0;
Error: CLANG_WARNING: [#def304]
readline-8.2/search.c:536:3: warning[deadcode.DeadStores]: Value stored to 'had_saved_line' is never read
# 534| char *t;
# 535|
# 536|-> had_saved_line = _rl_saved_line_for_history != 0;
# 537| rl_maybe_save_line ();
# 538| temp = (HIST_ENTRY *)NULL;
Error: COMPILER_WARNING (CWE-563): [#def305]
readline-8.2/shell.c:125:13: warning[-Wunused-variable]: ‘putenv_buf1’ defined but not used
# 125 | static char putenv_buf1[INT_STRLEN_BOUND (int) + 6 + 1]; /* sizeof("LINES=") == 6 */
# | ^~~~~~~~~~~
# 123| respectively. */
# 124| static char setenv_buf[INT_STRLEN_BOUND (int) + 1];
# 125|-> static char putenv_buf1[INT_STRLEN_BOUND (int) + 6 + 1]; /* sizeof("LINES=") == 6 */
# 126| static char putenv_buf2[INT_STRLEN_BOUND (int) + 8 + 1]; /* sizeof("COLUMNS=") == 8 */
# 127|
Error: COMPILER_WARNING (CWE-563): [#def306]
readline-8.2/shell.c:126:13: warning[-Wunused-variable]: ‘putenv_buf2’ defined but not used
# 126 | static char putenv_buf2[INT_STRLEN_BOUND (int) + 8 + 1]; /* sizeof("COLUMNS=") == 8 */
# | ^~~~~~~~~~~
# 124| static char setenv_buf[INT_STRLEN_BOUND (int) + 1];
# 125| static char putenv_buf1[INT_STRLEN_BOUND (int) + 6 + 1]; /* sizeof("LINES=") == 6 */
# 126|-> static char putenv_buf2[INT_STRLEN_BOUND (int) + 8 + 1]; /* sizeof("COLUMNS=") == 8 */
# 127|
# 128| void
Error: COMPILER_WARNING (CWE-563): [#def307]
readline-8.2/signals.c: scope_hint: In function ‘rl_set_signals’
readline-8.2/signals.c:414:25: warning[-Wunused-variable]: unused variable ‘oset’
# 414 | static sigset_t bset, oset;
# | ^~~~
# 412| #if defined (HAVE_POSIX_SIGNALS)
# 413| static int sigmask_set = 0;
# 414|-> static sigset_t bset, oset;
# 415| #endif
# 416|
Error: COMPILER_WARNING (CWE-563): [#def308]
readline-8.2/signals.c:625:17: warning[-Wunused-variable]: ‘sigint_set’ defined but not used
# 625 | static sigset_t sigint_set, sigint_oset;
# | ^~~~~~~~~~
# 623|
# 624| #if defined (HAVE_POSIX_SIGNALS)
# 625|-> static sigset_t sigint_set, sigint_oset;
# 626| static sigset_t sigwinch_set, sigwinch_oset;
# 627| #else /* !HAVE_POSIX_SIGNALS */
Error: COMPILER_WARNING (CWE-563): [#def309]
readline-8.2/signals.c: scope_hint: At top level
readline-8.2/signals.c:625:29: warning[-Wunused-variable]: ‘sigint_oset’ defined but not used
# 625 | static sigset_t sigint_set, sigint_oset;
# | ^~~~~~~~~~~
# 623|
# 624| #if defined (HAVE_POSIX_SIGNALS)
# 625|-> static sigset_t sigint_set, sigint_oset;
# 626| static sigset_t sigwinch_set, sigwinch_oset;
# 627| #else /* !HAVE_POSIX_SIGNALS */
Error: CPPCHECK_WARNING: [#def310]
readline-8.2/terminal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def311]
readline-8.2/text.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def312]
readline-8.2/text.c: scope_hint: In function ‘rl_insert_text’
readline-8.2/text.c:100:3: warning[-Wstringop-truncation]: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length
# 100 | strncpy (rl_line_buffer + rl_point, string, l);
# | ^
readline-8.2/text.c:90:29: note: length computed here
# 90 | l = (string && *string) ? strlen (string) : 0;
# | ^~~~~~~~~~~~~~~
# 98| rl_line_buffer[i + l] = rl_line_buffer[i];
# 99|
# 100|-> strncpy (rl_line_buffer + rl_point, string, l);
# 101|
# 102| /* Remember how to undo this if we aren't undoing something. */
Error: GCC_ANALYZER_WARNING (CWE-674): [#def313]
readline-8.2/text.c: scope_hint: In function ‘rl_forward_byte’
readline-8.2/text.c:396:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 394| {
# 395| if (count < 0)
# 396|-> return (rl_forward_byte (-count, key));
# 397|
# 398| if (count > 0)
Error: CLANG_WARNING: [#def314]
readline-8.2/text.c:817:7: warning[deadcode.DeadStores]: Value stored to 'incoming_length' is never read
# 815| }
# 816| }
# 817|-> incoming_length = 0;
# 818| stored_count = 0;
# 819| #else /* !HANDLE_MULTIBYTE */
Error: CLANG_WARNING: [#def315]
readline-8.2/text.c:861:7: warning[deadcode.DeadStores]: Value stored to 'incoming_length' is never read
# 859|
# 860| xfree (string);
# 861|-> incoming_length = 0;
# 862| stored_count = 0;
# 863| #else /* !HANDLE_MULTIBYTE */
Error: CPPCHECK_WARNING: [#def316]
readline-8.2/tilde.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def317]
readline-8.2/tilde.c:194:18: warning[deadcode.DeadStores]: Although the value stored to 'result_size' is used in the enclosing expression, the value is never actually read from 'result_size'
# 192| int result_size, result_index;
# 193|
# 194|-> result_index = result_size = 0;
# 195| if (result = strchr (string, '~'))
# 196| result = (char *)xmalloc (result_size = (strlen (string) + 16));
Error: COMPILER_WARNING (CWE-569): [#def318]
readline-8.2/tilde.c: scope_hint: In function ‘tilde_expand’
readline-8.2/tilde.c:195:7: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 195 | if (result = strchr (string, '~'))
# | ^~~~~~
# 193|
# 194| result_index = result_size = 0;
# 195|-> if (result = strchr (string, '~'))
# 196| result = (char *)xmalloc (result_size = (strlen (string) + 16));
# 197| else
Error: CLANG_WARNING: [#def319]
readline-8.2/tilde.c:195:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 193|
# 194| result_index = result_size = 0;
# 195|-> if (result = strchr (string, '~'))
# 196| result = (char *)xmalloc (result_size = (strlen (string) + 16));
# 197| else
Error: COMPILER_WARNING (CWE-563): [#def320]
readline-8.2/undo.c: scope_hint: In function ‘rl_free_undo_list’
readline-8.2/undo.c:119:14: warning[-Wunused-variable]: unused variable ‘release’
# 119 | UNDO_LIST *release, *orig_list;
# | ^~~~~~~
# 117| rl_free_undo_list (void)
# 118| {
# 119|-> UNDO_LIST *release, *orig_list;
# 120|
# 121| orig_list = rl_undo_list;
Error: CPPCHECK_WARNING (CWE-457): [#def321]
readline-8.2/undo.c:154: warning[uninitvar]: Uninitialized variable: roving
# 152| else
# 153| {
# 154|-> roving->next = c;
# 155| roving = roving->next;
# 156| }
Error: CPPCHECK_WARNING: [#def322]
readline-8.2/vi_mode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def323]
readline-8.2/vi_mode.c: scope_hint: At top level
readline-8.2/vi_mode.c:104:12: warning[-Wunused-variable]: ‘vi_continued_command’ defined but not used
# 104 | static int vi_continued_command;
# | ^~~~~~~~~~~~~~~~~~~~
# 102| us implicitly into insert mode. Some people want this text to be
# 103| attached to the command so that it is `redoable' with `.'. */
# 104|-> static int vi_continued_command;
# 105| static char *vi_insert_buffer;
# 106| static int vi_insert_buffer_size;
Error: COMPILER_WARNING (CWE-563): [#def324]
readline-8.2/vi_mode.c: scope_hint: In function ‘rl_vi_fword’
readline-8.2/vi_mode.c:622:7: warning[-Wunused-but-set-variable]: variable ‘opoint’ set but not used
# 622 | int opoint;
# | ^~~~~~
# 620| rl_vi_fword (int count, int ignore)
# 621| {
# 622|-> int opoint;
# 623|
# 624| while (count-- && rl_point < (rl_end - 1))
Error: CLANG_WARNING: [#def325]
readline-8.2/vi_mode.c:639:7: warning[deadcode.DeadStores]: Value stored to 'opoint' is never read
# 637| }
# 638|
# 639|-> opoint = rl_point;
# 640|
# 641| /* Move past whitespace. */
Error: CLANG_WARNING: [#def326]
readline-8.2/vi_mode.c:643:2: warning[deadcode.DeadStores]: Value stored to 'opoint' is never read
# 641| /* Move past whitespace. */
# 642| while (whitespace (rl_line_buffer[rl_point]) && rl_point < rl_end)
# 643|-> opoint = _rl_vi_advance_point ();
# 644| }
# 645| return (0);
Error: CLANG_WARNING: [#def327]
readline-8.2/vi_mode.c:681:4: warning[deadcode.DeadStores]: Value stored to 'opoint' is never read
# 679| if (rl_point > 0)
# 680| {
# 681|-> opoint = rl_point;
# 682| if (_rl_isident (rl_line_buffer[rl_point]))
# 683| do
Error: COMPILER_WARNING (CWE-563): [#def328]
readline-8.2/vi_mode.c: scope_hint: In function ‘rl_vi_domove’
readline-8.2/vi_mode.c:1343:7: warning[-Wunused-variable]: unused variable ‘r’
# 1343 | int r;
# | ^
# 1341| rl_vi_domove (int x, int *ignore)
# 1342| {
# 1343|-> int r;
# 1344| _rl_vimotion_cxt *m;
# 1345|
Error: COMPILER_WARNING: [#def329]
readline-8.2/vi_mode.c: scope_hint: In function ‘rl_vi_change_char’
readline-8.2/vi_mode.c:2069:7: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16
# 2069 | strncpy (mb, _rl_vi_last_replacement, MB_LEN_MAX);
# | ^
# 2067| if (_rl_vi_redoing)
# 2068| {
# 2069|-> strncpy (mb, _rl_vi_last_replacement, MB_LEN_MAX);
# 2070| c = (unsigned char)_rl_vi_last_replacement[0]; /* XXX */
# 2071| mb[MB_LEN_MAX] = '\0';
Scan Properties
analyzer-version-clang | 18.1.6 |
analyzer-version-cppcheck | 2.14.1 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.9.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-210.us-west-2.compute.internal |
mock-config | fedora-40-x86_64 |
project-name | readline-8.2-8.fc40 |
store-results-to | /tmp/tmp39c_vt4t/readline-8.2-8.fc40.tar.xz |
time-created | 2024-06-18 17:37:18 |
time-finished | 2024-06-18 17:39:54 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-40-x86_64' '-t' 'gcc,clang,shellcheck,cppcheck' '-o' '/tmp/tmp39c_vt4t/readline-8.2-8.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp39c_vt4t/readline-8.2-8.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |