Script started on Wed 26 Apr 2017 07:29:47 AM CDT dualbus@debian:~/src/gnu/bash$ scan-build-3.9 ./configure scan-build: Using '/usr/lib/llvm-3.9/bin/clang' for static analysis checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu Beginning configuration for bash-4.4-maint for x86_64-unknown-linux-gnu checking for gcc... /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer accepts -g... yes checking for /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer option to accept ISO C89... none needed checking for strerror in -lcposix... no checking how to run the C preprocessor... /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer needs -traditional... no checking for a BSD-compatible install... /usr/bin/install -c checking for ar... ar checking for ranlib... ranlib checking for bison... bison -y checking whether make sets $(MAKE)... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking for preprocessor stringizing operator... rm: cannot remove 'conftest.plist': Is a directory yes checking for long double with more range or precision than double... yes checking for function prototypes... yes checking whether char is unsigned... no checking for working volatile... yes checking for C/C++ restrict keyword... __restrict checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for off_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for sys/time.h... yes checking for getpagesize... yes checking for working mmap... yes checking whether we are using the GNU C Library 2.1 or newer... rm: cannot remove 'conftest.plist': Is a directory yes checking whether integer division by zero raises SIGFPE... no checking for inttypes.h... yes checking for stdint.h... yes checking for unsigned long long... yes checking for inttypes.h... yes checking whether the inttypes.h PRIxNN macros are broken... no checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... (cached) yes checking for feof_unlocked... yes checking for fgets_unlocked... yes checking for getc_unlocked... yes checking for getcwd... yes checking for getegid... yes checking for geteuid... yes checking for getgid... yes checking for getuid... yes checking for mempcpy... yes checking for munmap... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for localeconv... yes checking for stpcpy... yes checking for strcasecmp... yes checking for strdup... yes checking for strtoul... yes checking for tsearch... yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for __fsetlocking... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for nl_langinfo and CODESET... yes checking for LC_MESSAGES... yes checking for bison... bison checking version of bison... 3.0.4, ok checking whether NLS is requested... yes checking whether included gettext is requested... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether time.h and sys/time.h may both be included... yes checking for inttypes.h... (cached) yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking varargs.h usability... no checking varargs.h presence... no checking for varargs.h... no checking for limits.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for locale.h... (cached) yes checking termcap.h usability... no checking termcap.h presence... no checking for termcap.h... no checking termio.h usability... yes checking termio.h presence... yes checking for termio.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking for stddef.h... (cached) yes checking for stdint.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking for strings.h... (cached) yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking ulimit.h usability... yes checking ulimit.h presence... yes checking for ulimit.h... yes checking sys/pte.h usability... no checking sys/pte.h presence... no checking for sys/pte.h... no checking sys/stream.h usability... no checking sys/stream.h presence... no checking for sys/stream.h... no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/param.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking for sys/types.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for sys/ptem.h... no checking for sys/resource.h... yes checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for uid_t in sys/types.h... rm: cannot remove 'conftest.plist': Is a directory yes checking for unistd.h... (cached) yes checking for working chown... yes checking whether getpgrp requires zero arguments... yes checking for vprintf... yes checking for _doprnt... no checking for working strcoll... yes checking return type of signal handlers... void checking for __setostype... no checking for wait3... yes checking for mkfifo... yes checking for dup2... yes checking for eaccess... yes checking for fcntl... yes checking for getdtablesize... yes checking for getgroups... yes checking for gethostname... yes checking for getpagesize... (cached) yes checking for getpeername... yes checking for getrlimit... yes checking for getrusage... yes checking for gettimeofday... yes checking for kill... yes checking for killpg... yes checking for lstat... yes checking for pselect... yes checking for readlink... yes checking for select... yes checking for setdtablesize... no checking for setitimer... yes checking for tcgetpgrp... yes checking for uname... yes checking for ulimit... yes checking for waitpid... yes checking for rename... yes checking for bcopy... yes checking for bzero... yes checking for confstr... yes checking for faccessat... yes checking for fnmatch... yes checking for getaddrinfo... yes checking for gethostbyname... yes checking for getservbyname... yes checking for getservent... yes checking for inet_aton... yes checking for imaxdiv... yes checking for memmove... yes checking for pathconf... yes checking for putenv... (cached) yes checking for raise... yes checking for random... yes checking for regcomp... yes checking for regexec... yes checking for setenv... (cached) yes checking for setlinebuf... yes checking for setlocale... (cached) yes checking for setvbuf... yes checking for siginterrupt... yes checking for strchr... yes checking for sysconf... yes checking for syslog... yes checking for tcgetattr... yes checking for times... yes checking for ttyname... yes checking for tzset... yes checking for unsetenv... yes checking for vasprintf... yes checking for asprintf... yes checking for isascii... yes checking for isblank... yes checking for isgraph... yes checking for isprint... yes checking for isspace... yes checking for isxdigit... yes checking for getpwent... yes checking for getpwnam... yes checking for getpwuid... yes checking for mkstemp... yes checking for getcwd... (cached) yes checking for memset... yes checking for strcasecmp... (cached) yes checking for strcasestr... yes checking for strerror... yes checking for strftime... yes checking for strnlen... yes checking for strpbrk... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for strtoul... (cached) yes checking for strtoll... yes checking for strtoull... yes checking for strtoimax... yes checking for strtoumax... yes checking for dprintf... yes checking for strchrnul... yes checking for strdup... (cached) yes checking libaudit.h usability... no checking libaudit.h presence... no checking for libaudit.h... no checking whether AUDIT_USER_TTY is declared... yes checking whether confstr is declared... yes checking whether printf is declared... yes checking whether sbrk is declared... yes checking whether setregid is declared... yes checking whether strcpy is declared... yes checking whether strsignal is declared... yes checking whether strtold is declared... yes checking for broken strtold... yes checking for declaration of strtoimax... yes checking for declaration of strtol... yes checking for declaration of strtoll... yes checking for declaration of strtoul... yes checking for declaration of strtoull... yes checking for declaration of strtoumax... yes checking for alarm... yes checking for sbrk... yes checking for fpurge... no checking for __fpurge... yes checking for snprintf... yes checking for vsnprintf... yes checking for working mktime... yes checking for argz.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for malloc.h... (cached) yes checking stdio_ext.h usability... yes checking stdio_ext.h presence... yes checking for stdio_ext.h... yes checking for getpagesize... (cached) yes checking for working mmap... (cached) yes checking for __argz_count... (cached) yes checking for __argz_next... (cached) yes checking for __argz_stringify... (cached) yes checking for dcgettext... yes checking for mempcpy... (cached) yes checking for munmap... (cached) yes checking for stpcpy... (cached) yes checking for strcspn... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking mbstr.h usability... no checking mbstr.h presence... no checking for mbstr.h... no checking for mbrlen... yes checking for mbscasecmp... no checking for mbscmp... no checking for mbsnrtowcs... yes checking for mbsrtowcs... yes checking for mbschr... no checking for wcrtomb... yes checking for wcscoll... yes checking for wcsdup... yes checking for wcwidth... yes checking for wctype... yes checking for wcswidth... yes checking whether mbrtowc and mbstate_t are properly declared... yes checking for iswlower... yes checking for iswupper... yes checking for towlower... yes checking for towupper... yes checking for iswctype... yes checking for nl_langinfo and CODESET... yes checking for wchar_t in wchar.h... yes checking for wctype_t in wctype.h... yes checking for wint_t in wctype.h... yes checking for wcwidth broken with unicode combining characters... no checking for locale_charset... no checking size of wchar_t... 4 checking for dlopen in -ldl... yes checking for dlopen... yes checking for dlclose... yes checking for dlsym... yes checking whether sys_siglist is declared... yes checking type of array argument to getgroups... gid_t checking for off_t... (cached) yes checking for mode_t... yes checking for uid_t in sys/types.h... (cached) yes checking for pid_t... yes checking for size_t... (cached) yes checking for uintptr_t... yes checking for ssize_t... yes checking for time_t... yes checking for long long... long long checking for unsigned long long... unsigned long long checking return type of signal handlers... (cached) void checking for sig_atomic_t in signal.h... yes checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of char *... 8 checking size of double... 8 checking size of long long... 8 checking for u_int... yes checking for u_long... yes checking for bits16_t... no checking for u_bits16_t... no checking for bits32_t... no checking for u_bits32_t... no checking for bits64_t... no checking for ptrdiff_t... yes checking whether stat file-mode macros are broken... no checking whether #! works in shell scripts... yes checking whether the ctype macros accept non-ascii characters... yes checking if dup2 fails to clear the close-on-exec flag... no checking whether pgrps need synchronization... no checking for type of signal functions... posix checking for sys_errlist and sys_nerr... yes checking for sys_siglist in system C library... yes checking for _sys_siglist in signal.h or unistd.h... yes checking for _sys_siglist in system C library... yes checking whether signal handlers are of type void... yes checking for clock_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for sigset_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for sig_atomic_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for quad_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for intmax_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for uintmax_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for socklen_t... rm: cannot remove 'conftest.plist': Is a directory yes checking for size and type of struct rlimit fields... rlim_t checking size of intmax_t... 8 checking for struct termios.c_line... yes checking for struct termio.c_line... yes checking for struct dirent.d_ino... yes checking for struct dirent.d_fileno... yes checking for struct dirent.d_namlen... no checking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.h checking for struct timeval in sys/time.h and time.h... rm: cannot remove 'conftest.plist': Is a directory yes checking for struct stat.st_blocks... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct timezone in sys/time.h and time.h... rm: cannot remove 'conftest.plist': Is a directory yes checking for offset of exit status in return status from wait... 8 checking for struct timespec in ... yes checking for struct stat.st_atim.tv_nsec... yes checking whether struct stat.st_atim is of type struct timespec... yes checking for working sbrk... yes checking for the existence of strsignal... yes checking if opendir() opens non-directories... no checking whether ulimit can substitute for getdtablesize... yes checking whether fpurge is declared... no checking to see if getenv can be redefined... yes checking if getcwd() will dynamically allocate memory with 0 size... yes checking for presence of POSIX-style sigsetjmp/siglongjmp... present checking whether or not strcoll and strcmp differ... no checking for standard-conformant snprintf... yes checking for standard-conformant vsnprintf... yes checking for standard-conformant putenv declaration... yes checking for standard-conformant unsetenv declaration... yes checking for printf floating point output in hex notation... yes checking if signal handlers must be reinstalled when invoked... no checking for presence of necessary job control definitions... present checking for presence of named pipes... present checking whether termios.h defines TIOCGWINSZ... rm: cannot remove 'conftest.plist': Is a directory no checking whether sys/ioctl.h defines TIOCGWINSZ... rm: cannot remove 'conftest.plist': Is a directory yes checking for TIOCSTAT in sys/ioctl.h... no checking for FIONREAD in sys/ioctl.h... yes checking whether WCONTINUED flag to waitpid is unavailable or available but broken... no checking for speed_t in sys/types.h... no checking whether getpw functions are declared in pwd.h... rm: cannot remove 'conftest.plist': Is a directory yes checking for unusable real-time signals due to large values... no checking for tgetent... no checking for tgetent in -ltermcap... yes checking which library has the termcap functions... using libtermcap checking whether /dev/fd is available... standard checking whether /dev/stdin stdout stderr are available... present checking for default mail directory... /var/mail checking shared object configuration for loadable builtins... supported configure: creating ./config.status config.status: creating Makefile config.status: creating builtins/Makefile config.status: creating lib/readline/Makefile config.status: creating lib/glob/Makefile config.status: creating lib/intl/Makefile config.status: creating lib/malloc/Makefile config.status: creating lib/sh/Makefile config.status: creating lib/termcap/Makefile config.status: creating lib/tilde/Makefile config.status: creating doc/Makefile config.status: creating support/Makefile config.status: creating po/Makefile.in config.status: creating examples/loadables/Makefile config.status: creating examples/loadables/Makefile.inc config.status: creating examples/loadables/perl/Makefile config.status: creating support/bash.pc config.status: creating support/bashbug.sh config.status: creating config.h config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing default commands scan-build: Removing directory '/tmp/scan-build-2017-04-26-073011-20356-1' because it contains no reports. scan-build: No bugs found. dualbus@debian:~/src/gnu/bash$ scan-build-3.9 make scan-build: Using '/usr/lib/llvm-3.9/bin/clang' for static analysis bison -y -d ./parse.y ./parse.y: warning: 1 shift/reduce conflict [-Wconflicts-sr] touch parser-built rm -f mksyntax /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o mksyntax ./mksyntax.c ./mksyntax.c:345:3: warning: Value stored to 'argc' is never read argc -= optind; ^ ~~~~~~ ./mksyntax.c:346:3: warning: Value stored to 'argv' is never read argv += optind; ^ ~~~~~~ ./mksyntax.c:359:7: warning: Value stored to 'filename' is never read filename = "stdout"; ^ ~~~~~~~~ 3 warnings generated. rm -f syntax.c ./mksyntax -o syntax.c /bin/sh ./support/mkversion.sh -b -S . -s maint -d 4.4 -o newversion.h \ && mv newversion.h version.h /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -DBUILDTOOL -c -o buildversion.o ./version.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o bashversion ./support/bashversion.c buildversion.o ./support/bashversion.c:111:3: warning: Value stored to 'argv' is never read argv += optind; ^ ~~~~~~ 1 warning generated. *********************************************************** * * * GNU bash, version 4.4.12(1)-maint (x86_64-unknown-linux-gnu) * * *********************************************************** rm -f shell.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c shell.c shell.c:1287:7: warning: Value stored to 'e' is never read e = errno; ^ ~~~~~ 1 warning generated. rm -f eval.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c eval.c make[1]: Entering directory '/home/dualbus/src/gnu/bash/builtins' rm -f mkbuiltins.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -g -O2 -Wno-parentheses -Wno-format-security mkbuiltins.c mkbuiltins.c:567:22: warning: Array access (via field 'array') results in a null pointer dereference for (i = 0; line = defs->lines->array[i]; i++) ^~~~~~~~~~~~~~~~~~~~~ mkbuiltins.c:1073:19: warning: Null pointer passed as an argument to a 'nonnull' parameter new->shortdoc = savestring (builtin->shortdoc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkbuiltins.c:68:44: note: expanded from macro 'savestring' #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) ^~~~~~~~~~ 2 warnings generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o mkbuiltins mkbuiltins.o -ldl ./mkbuiltins -externfile builtext.h -structfile builtins.c \ -noproduction -D . ./alias.def ./bind.def ./break.def ./builtin.def ./caller.def ./cd.def ./colon.def ./command.def ./declare.def ./echo.def ./enable.def ./eval.def ./getopts.def ./exec.def ./exit.def ./fc.def ./fg_bg.def ./hash.def ./help.def ./history.def ./jobs.def ./kill.def ./let.def ./read.def ./return.def ./set.def ./setattr.def ./shift.def ./source.def ./suspend.def ./test.def ./times.def ./trap.def ./type.def ./ulimit.def ./umask.def ./wait.def ./reserved.def ./pushd.def ./shopt.def ./printf.def ./complete.def ./mapfile.def make[1]: Leaving directory '/home/dualbus/src/gnu/bash/builtins' rm -f execute_cmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c execute_cmd.c execute_cmd.c:1342:15: warning: Access to field 'flags' results in a dereference of a null pointer (loaded from variable 'command') old_flags = command->flags; ^~~~~~~~~~~~~~ execute_cmd.c:2222:5: warning: Value stored to 'v' is never read v = convert_var_to_array (v); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:2226:3: warning: Value stored to 'v' is never read v = bind_array_variable (cp->c_name, ind, t, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:2231:3: warning: Value stored to 'v' is never read v = bind_array_variable (cp->c_name, ind, t, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:2246:3: warning: Value stored to 'v' is never read v = bind_variable (namevar, t, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:2306:15: warning: Branch condition evaluates to a garbage value return (invert ? EXECUTION_SUCCESS : EXECUTION_FAILURE); ^~~~~~ execute_cmd.c:2457:36: warning: Array access (via field 'bitmap') results in a null pointer dereference fd_bitmap->bitmap[fildes[0]] = 1; ~~~~~~ ^ execute_cmd.c:2983:3: warning: Value stored to 'expresult' is never read expresult = eval_arith_for_expr (arith_for_command->init, &expok); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:3027:7: warning: Value stored to 'expresult' is never read expresult = eval_arith_for_expr (arith_for_command->step, &expok); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ execute_cmd.c:3142:7: warning: Value stored to 'cols' is never read cols = 1; ^ ~ execute_cmd.c:3238:15: warning: Access to field 'word' results in a dereference of a null pointer (loaded from variable 'l') return (l->word->word); /* XXX - can't be null? */ ^~~~~~~ execute_cmd.c:3306:3: warning: Value stored to 'retval' is never read retval = EXECUTION_SUCCESS; ^ ~~~~~~~~~~~~~~~~~ execute_cmd.c:3627:3: warning: Value stored to 'expresult' is never read expresult = 0; ^ ~ execute_cmd.c:3735:32: warning: Access to field 'op' results in a dereference of a null pointer (loaded from field 'left') arg1 = cond_expand_word (cond->left->op, 0); ^~~~~~~~~~~~~~ execute_cmd.c:3748:7: warning: Value stored to 'rmatch' is never read rmatch = 0; ^ ~ execute_cmd.c:3759:32: warning: Access to field 'op' results in a dereference of a null pointer (loaded from field 'left') arg1 = cond_expand_word (cond->left->op, 0); ^~~~~~~~~~~~~~ execute_cmd.c:3766:32: warning: Access to field 'op' results in a dereference of a null pointer (loaded from field 'right') arg2 = cond_expand_word (cond->right->op, ^~~~~~~~~~~~~~~ execute_cmd.c:3981:3: warning: Value stored to 'wcmd' is never read wcmd = words; ^ ~~~~~ execute_cmd.c:4079:3: warning: Value stored to 'result' is never read result = EXECUTION_SUCCESS; ^ ~~~~~~~~~~~~~~~~~ execute_cmd.c:4823:40: warning: Access to field 'line' results in a dereference of a null pointer (loaded from variable 'tc') line_number = function_line_number = tc->line; ^~~~~~~~ 20 warnings generated. rm -f y.tab.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c y.tab.c ./parse.y:3416:7: warning: Value stored to 'prevch' is never read prevch = ch; ^ ~~ ./parse.y:4271:3: warning: Value stored to 'orig_ind' is never read orig_ind = *indp; ^ ~~~~~ ./parse.y:4379:7: warning: Value stored to 'sline' is never read sline = line_number; ^ ~~~~~~~~~~~ ./parse.y:4420:3: warning: Value stored to 'exp_lineno' is never read exp_lineno = line_number; ^ ~~~~~~~~~~~ ./parse.y:5790:3: warning: Value stored to 'temp' is never read temp = trim_pathname (t_string, PATH_MAX - 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 warnings generated. rm -f general.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c general.c rm -f make_cmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c make_cmd.c make_cmd.c:281:3: warning: Value stored to 'start' is never read start = t = s = exprs->word->word; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f print_cmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c print_cmd.c rm -f dispose_cmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c dispose_cmd.c rm -f variables.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c variables.c variables.c:450:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("_", dollar_vars[0]); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:457:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("PATH", DEFAULT_PATH_VALUE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:458:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("TERM", "dumb"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:528:3: warning: Value stored to 'temp_var' is never read temp_var = bind_variable ("BASH", name, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:650:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("HOSTTYPE", HOSTTYPE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:651:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("OSTYPE", OSTYPE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:652:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("MACHTYPE", MACHTYPE); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:654:3: warning: Value stored to 'temp_var' is never read temp_var = set_if_not ("HOSTNAME", current_host_name); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:677:5: warning: Value stored to 'temp_var' is never read temp_var = bind_variable ("HOME", sh_get_home_dir (), 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:695:7: warning: Value stored to 'temp_var' is never read temp_var = bind_variable ("SHELL", current_user.shell, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1563:22: warning: Null pointer passed as an argument to a 'nonnull' parameter var_setvalue (var, savestring (rl_completer_word_break_characters)); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./general.h:69:54: note: expanded from macro 'savestring' # define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x)) ^ ~ ./xmalloc.h:48:32: note: expanded from macro 'xmalloc' #define xmalloc(x) sh_xmalloc((x), __FILE__, __LINE__) ^ ./variables.h:176:49: note: expanded from macro 'var_setvalue' #define var_setvalue(var, str) ((var)->value = (str)) ^~~ variables.c:1809:3: warning: Value stored to 'v' is never read v = init_seconds_var (); ^ ~~~~~~~~~~~~~~~~~~~ variables.c:1837:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("DIRSTACK", get_dirstack, assign_dirstack, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1841:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("GROUPS", get_groupset, null_array_assign, att_noassign); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1844:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, att_noassign|att_nounset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1845:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, att_noassign|att_nounset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1847:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, att_noassign|att_nounset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1848:3: warning: Value stored to 'v' is never read v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, att_noassign|att_nounset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1850:3: warning: Value stored to 'v' is never read v = init_dynamic_assoc_var ("BASH_CMDS", get_hashcmd, assign_hashcmd, att_nofree); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1852:3: warning: Value stored to 'v' is never read v = init_dynamic_assoc_var ("BASH_ALIASES", get_aliasvar, assign_aliasvar, att_nofree); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:1856:3: warning: Value stored to 'v' is never read v = init_funcname_var (); ^ ~~~~~~~~~~~~~~~~~~~~ variables.c:2800:5: warning: Null pointer passed as an argument to a 'nonnull' parameter strcpy (new + len, value); ^~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:3260:7: warning: Value stored to 'entry' is never read entry = copy_function_def_contents (value, entry); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.c:3757:3: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'entry') VSETATTR (entry, att_readonly); ^ ~~~~~ ./variables.h:190:48: note: expanded from macro 'VSETATTR' #define VSETATTR(var, attr) ((var)->attributes |= (attr)) ~~~ ^ variables.c:4072:3: warning: Value stored to 'vc' is never read vc = shell_variables; ^ ~~~~~~~~~~~~~~~ variables.c:4636:40: warning: Array access (from variable 'export_env') results in a null pointer dereference export_env[export_env_index = 0] = (char *)NULL; ~~~~~~~~~~ ^ variables.c:5700:3: warning: Value stored to 'a' is never read a = array_cell (v); ^ ~~~~~~~~~~~~~~ 27 warnings generated. rm -f copy_cmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c copy_cmd.c rm -f error.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c error.c rm -f expr.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c expr.c expr.c:217:17: warning: conflicting types for built-in function ‘exp2’ static intmax_t exp2 __P((void)); ^~~~ expr.c:384:3: warning: Value stored to 'val' is never read val = 0; ^ ~ expr.c:1459:24: warning: Dereference of null pointer (loaded from variable 't') for (t = expression; whitespace (*t); t++) ^~~~~~~~~~~~~~~ ./general.h:77:25: note: expanded from macro 'whitespace' #define whitespace(c) (((c) == ' ') || ((c) == '\t')) ^~~ 2 warnings generated. rm -f flags.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c flags.c rm -f jobs.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c jobs.c jobs.c: In function ‘wait_for_job’: jobs.c:2995:1: warning: type of ‘flags’ defaults to ‘int’ [-Wimplicit-int] wait_for_job (job, flags) ^~~~~~~~~~~~ jobs.c: In function ‘wait_for_any_job’: jobs.c:3040:1: warning: type of ‘flags’ defaults to ‘int’ [-Wimplicit-int] wait_for_any_job (flags) ^~~~~~~~~~~~~~~~ jobs.c:2390:3: warning: Value stored to 'alive' is never read alive = 0; ^ ~ jobs.c:2465:4: warning: Value stored to 'check_async' is never read check_async = 0; ^ ~ jobs.c:2472:5: warning: Value stored to 'r' is never read r = wait_for (last_procsub_child->pid); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ jobs.c:2809:5: warning: Value stored to 'termination_state' is never read termination_state = -1; ^ ~~ jobs.c:3070:8: warning: Value stored to 'waited_for' is never read for (waited_for = 0;;) ^ ~ jobs.c:3198:3: warning: Value stored to 'candidate' is never read candidate = NO_JOB; ^ ~~~~~~ jobs.c:3199:7: warning: Access to field 'state' results in a dereference of a null pointer if (STOPPED (js.j_current)) ^~~~~~~~~~~~~~~~~~~~~~ ./jobs.h:93:21: note: expanded from macro 'STOPPED' #define STOPPED(j) (jobs[(j)]->state == JSTOPPED) ^~~~~~~~~~~~~~~~ jobs.c:3499:3: warning: Value stored to 'n' is never read n = 0; ^ ~ jobs.c:3501:5: warning: Value stored to 'n' is never read n = waitchld (-1, 0); ^ ~~~~~~~~~~~~~~~~ jobs.c:3826:4: warning: Value stored to 'tstatus' is never read tstatus = maybe_call_trap_handler (SIGINT); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 warnings generated. rm -f subst.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c subst.c subst.c:957:16: warning: Array access (from variable 'ret') results in a null pointer dereference for (t = 0; ret[t]; t++, j++) ^~~~~~ subst.c:1045:6: warning: Value stored to 'ret' is never read ret = extract_command_subst (string, &si, SX_NOALLOC|(flags&SX_COMPLETE)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1047:6: warning: Value stored to 'ret' is never read ret = extract_dollar_brace_string (string, &si, Q_DOUBLE_QUOTES, SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1153:3: warning: Value stored to 'clen' is never read clen = strlen (charlist); ^ ~~~~~~~~~~~~~~~~~ subst.c:1339:4: warning: Value stored to 'i' is never read i = slen; ^ ~~~~ subst.c:1383:11: warning: Value stored to 't' is never read t = extract_command_subst (string, &si, flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1393:4: warning: Value stored to 't' is never read t = extract_delimited_string (string, &si, opener, alt_opener, closer, flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1403:4: warning: Value stored to 't' is never read t = extract_delimited_string (string, &si, alt_opener, alt_opener, closer, flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1423:4: warning: Value stored to 't' is never read t = string_extract (string, &si, "`", flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1541:4: warning: Value stored to 't' is never read t = string_extract (string, &si, "`", flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1554:4: warning: Value stored to 't' is never read t = extract_command_subst (string, &si, flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1567:4: warning: Value stored to 't' is never read t = extract_process_subst (string, (string[i] == '<' ? "<(" : ">)"), &si, flags|SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1793:6: warning: Value stored to 'temp' is never read temp = extract_delimited_string (ss, &si, "$(", "(", ")", SX_NOALLOC|SX_COMMAND); /* ) */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1795:6: warning: Value stored to 'temp' is never read temp = extract_dollar_brace_string (ss, &si, 0, SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1922:4: warning: Value stored to 'temp' is never read temp = extract_delimited_string (string, &si, "(", "(", ")", SX_NOALLOC); /* ) */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1936:6: warning: Value stored to 'temp' is never read temp = extract_delimited_string (string, &si, "$(", "(", ")", SX_NOALLOC|SX_COMMAND); /* ) */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1938:6: warning: Value stored to 'temp' is never read temp = extract_dollar_brace_string (string, &si, 0, SX_NOALLOC); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1953:4: warning: Value stored to 'temp' is never read temp = extract_delimited_string (string, &si, (c == '<') ? "<(" : ">(", "(", ")", SX_COMMAND|SX_NOALLOC); /* )) */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1972:4: warning: Value stored to 'temp' is never read temp = extract_delimited_string (string, &si, open, "(", ")", SX_NOALLOC); /* ) */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:1988:4: warning: Value stored to 'temp' is never read temp = extract_delimited_string (string, &si, "[", "[", "]", SX_NOALLOC); /* ] */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:2770:3: warning: Value stored to 'slen' is never read slen = 0; ^ ~ subst.c:2844:61: warning: Array access (from variable 'separators') results in a null pointer dereference while (string[sindex] && spctabnl (string[sindex]) && issep (string[sindex])) ^~~~~~~~~~~~~~~~~~~~~~ subst.c:2742:3: note: expanded from macro 'issep' (((separators)[0]) ? ((separators)[1] ? isifs(c) \ ^~~~~~~~~~~~~~~~~ subst.c:2851:41: warning: Array access (from variable 'separators') results in a null pointer dereference if (string[sindex] && whitesep && issep (string[sindex]) && !spctabnl (string[sindex])) ^~~~~~~~~~~~~~~~~~~~~~ subst.c:2742:3: note: expanded from macro 'issep' (((separators)[0]) ? ((separators)[1] ? isifs(c) \ ^~~~~~~~~~~~~~~~~ subst.c:2900:3: warning: Value stored to 'slen' is never read slen = 0; ^ ~ subst.c:2984:8: warning: Dereference of null pointer *++s = '\0'; ~~~~~^~~~~~ subst.c:4444:10: warning: Dereference of null pointer (loaded from variable 'p') c = *p; *p = '\0'; ^~ subst.c:4473:7: warning: Dereference of null pointer (loaded from variable 'p') c = *p; *p = '\0'; ^~ subst.c:4486:7: warning: Dereference of null pointer (loaded from variable 'p') c = *p; *p = '\0'; ^~ subst.c:4726:9: warning: Dereference of null pointer (loaded from variable 'p1') c = *p1; *p1 = '\0'; ^~~ subst.c:4752:8: warning: Dereference of null pointer (loaded from variable 'p') c = *p; *p = '\0'; ^~ subst.c:5164:3: warning: Value stored to 'starsub' is never read starsub = vtype & VT_STARSUB; ^ ~~~~~~~~~~~~~~~~~~ subst.c:6001:21: warning: Assigned value is garbage or undefined last_made_pid = old_pid; ^ ~~~~~~~ subst.c:6557:36: warning: The left operand of '==' is a garbage value if (legal_identifier (name) && v == 0) ~ ^ subst.c:6844:16: warning: Branch condition evaluates to a garbage value number = STRLEN (t); ^~~~~~~~~~ ./general.h:152:21: note: expanded from macro 'STRLEN' #define STRLEN(s) (((s) && (s)[0]) ? ((s)[1] ? ((s)[2] ? strlen(s) : 2) : 1) : 0) ^~~ subst.c:6853:7: warning: Value stored to 'number' is never read number = 0; ^ ~ subst.c:7104:4: warning: Value stored to 'vtype' is never read vtype = VT_ARRAYMEMBER; ^ ~~~~~~~~~~~~~~ subst.c:7970:3: warning: Undefined or garbage value returned to caller return temp; ^~~~~~~~~~~ subst.c:8136:3: warning: Undefined or garbage value returned to caller return temp; ^~~~~~~~~~~ subst.c:8211:3: warning: Value stored to 'var_is_set' is never read var_is_set = var_is_null = var_is_special = check_nullness = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ subst.c:9644:4: warning: Value stored to 'local_expanded' is never read local_expanded = 1; ^ ~ subst.c:9711:6: warning: Value stored to 'local_expanded' is never read local_expanded = 1; ^ ~ subst.c:9891:5: warning: Value stored to 'local_expanded' is never read local_expanded = 1; ^ ~ subst.c:10862:7: warning: Value stored to 'temp_string' is never read temp_string = tlist->word->word; ^ ~~~~~~~~~~~~~~~~~ subst.c:10912:9: warning: Access to field 'word' results in a dereference of a null pointer (loaded from variable 'l') if (l->word->word[0] != '-') ^~~~~~~ 44 warnings generated. rm -f hashcmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c hashcmd.c rm -f hashlib.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c hashlib.c hashlib.c:193:20: warning: Array access (via field 'bucket_array') results in a null pointer dereference list->next = table->bucket_array[bucket]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f mailcheck.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c mailcheck.c rm -f mksignames.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -DBUILDTOOL -c ./support/mksignames.c rm -f buildsignames.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -DBUILDTOOL -o buildsignames.o -c ./support/signames.c rm -f mksignames /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o mksignames mksignames.o buildsignames.o rm -f lsignames.h ./mksignames lsignames.h if cmp -s lsignames.h signames.h ; then :; else rm -f signames.h ; cp lsignames.h signames.h ; fi rm -f trap.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c trap.c rm -f input.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c input.c input.c:365:28: warning: Access to field 'b_flag' results in a dereference of a null pointer buffers[fd2]->b_flag |= B_WASBASHINPUT; ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1 warning generated. rm -f unwind_prot.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c unwind_prot.c rm -f pathexp.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c pathexp.c pathexp.c:197:3: warning: Value stored to 'brack' is never read brack = cclass = collsym = equiv = last_was_backslash = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pathexp.c:228:4: warning: Value stored to 'brack' is never read brack = 1; ^ ~ pathexp.c:334:9: warning: Value stored to 'last_was_backslash' is never read last_was_backslash = 1; ^ ~ pathexp.c:637:30: warning: Dereference of null pointer ivp->ignores[numitems].val = (char *)NULL; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 4 warnings generated. rm -f sig.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c sig.c rm -f test.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c test.c rm -f version.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c version.c rm -f alias.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c alias.c alias.c:351:3: warning: Value stored to 'i' is never read i = backslash_quoted_word = pass_next = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f array.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c array.c array.c:658:3: warning: Value stored to 'startind' is never read startind = element_index(start); ^ ~~~~~~~~~~~~~~~~~~~~ array.c:723:3: warning: Value stored to 'startind' is never read startind = element_index(start); ^ ~~~~~~~~~~~~~~~~~~~~ array.c:778:3: warning: Value stored to 'startind' is never read startind = element_index(start); ^ ~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. rm -f arrayfunc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c arrayfunc.c arrayfunc.c:561:12: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') if (assoc_p (var)) ^~~~~~~~~~~~~ ./variables.h:143:25: note: expanded from macro 'assoc_p' #define assoc_p(var) ((((var)->attributes) & (att_assoc))) ^~~~~~~~~~~~~~~~~~~ arrayfunc.c:585:12: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') if (assoc_p (var)) ^~~~~~~~~~~~~ ./variables.h:143:25: note: expanded from macro 'assoc_p' #define assoc_p(var) ((((var)->attributes) & (att_assoc))) ^~~~~~~~~~~~~~~~~~~ arrayfunc.c:592:8: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') if (array_p (var)) ^~~~~~~~~~~~~ ./variables.h:139:25: note: expanded from macro 'array_p' #define array_p(var) ((((var)->attributes) & (att_array))) ^~~~~~~~~~~~~~~~~~~ arrayfunc.c:630:16: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') else if (assoc_p (var)) ^~~~~~~~~~~~~ ./variables.h:143:25: note: expanded from macro 'assoc_p' #define assoc_p(var) ((((var)->attributes) & (att_assoc))) ^~~~~~~~~~~~~~~~~~~ arrayfunc.c:785:35: warning: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'var') builtin_error ("%s[%s: %s", var->name, sub, _(bash_badsub_errmsg)); ^~~~~~~~~ arrayfunc.c:792:11: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') if (array_p (var) || assoc_p (var)) ^~~~~~~~~~~~~ ./variables.h:139:25: note: expanded from macro 'array_p' #define array_p(var) ((((var)->attributes) & (att_array))) ^~~~~~~~~~~~~~~~~~~ arrayfunc.c:801:7: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'var') if (assoc_p (var)) ^~~~~~~~~~~~~ ./variables.h:143:25: note: expanded from macro 'assoc_p' #define assoc_p(var) ((((var)->attributes) & (att_assoc))) ^~~~~~~~~~~~~~~~~~~ 7 warnings generated. rm -f assoc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c assoc.c rm -f braces.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c braces.c braces.c:136:4: warning: Value stored to 'start' is never read start = j = i + 1; /* { */ ^ ~~~~~~~~~ braces.c:447:14: warning: Array access (from variable 'result') results in a null pointer dereference result[i++] = t = itos (n); ~~~~~~ ^ braces.c:452:4: warning: Value stored to 'len' is never read len = asprintf (&t, "%0*d", width, arg); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ braces.c:453:16: warning: Array access (from variable 'result') results in a null pointer dereference result[i++] = t; ~~~~~~ ^ braces.c:462:16: warning: Array access (from variable 'result') results in a null pointer dereference result[i++] = t; ~~~~~~ ^ braces.c:553:11: warning: Dereference of null pointer (loaded from variable 'ep') if (*ep != 0 || errno == ERANGE) ^~~ 6 warnings generated. rm -f bracecomp.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c bracecomp.c bracecomp.c:88:13: warning: Null pointer passed as an argument to a 'nonnull' parameter gcd = strlen (array[start]); ^~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f bashhist.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c bashhist.c bashhist.c:541:3: warning: Value stored to 'expanded' is never read expanded = 0; ^ ~ bashhist.c:598:7: warning: Value stored to 'expanded' is never read expanded = 1; ^ ~ 2 warnings generated. rm -f bashline.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c bashline.c bashline.c:1438:3: warning: Value stored to 'saveti' is never read saveti = qc = -1; ^ ~~~~~~~ bashline.c:1449:7: warning: Value stored to 'saveti' is never read saveti = ti--; ^ ~~~~ bashline.c:2548:7: warning: Null pointer argument in call to string comparison function if (strcmp (new_line, rl_line_buffer) != 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:125:15: note: expanded from macro 'strcmp' : __builtin_strcmp (s1, s2)))); }) ^~~~~~~~~~~~~~~~~~~~~~~~~ bashline.c:2836:2: warning: Array subscript is undefined oldnames[oidx++] = names[idx]; ^~~~~~~~~~~~~~~~ bashline.c:2852:2: warning: Function call argument is an uninitialized value free (oldnames); ^~~~~~~~~~~~~~~ ./xmalloc.h:55:18: note: expanded from macro 'free' #define free(x) sh_xfree((x), __FILE__, __LINE__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bashline.c:2860:14: warning: Branch condition evaluates to a garbage value while (oidx) ^~~~ bashline.c:3028:7: warning: Null pointer passed as an argument to a 'nonnull' parameter d = savestring (*dirname); ^~~~~~~~~~~~~~~~~~~~~ ./general.h:69:54: note: expanded from macro 'savestring' # define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x)) ~~~~~~~~~~~~~^~~~~~~~~~~ ./xmalloc.h:48:32: note: expanded from macro 'xmalloc' #define xmalloc(x) sh_xmalloc((x), __FILE__, __LINE__) ^ bashline.c:3228:3: warning: Value stored to 'return_value' is never read return_value = should_expand_dirname = nextch = closer = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bashline.c:3469:11: warning: Null pointer passed as an argument to a 'nonnull' parameter if (strncmp (text, history_completion_array[local_index++], len) == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:159:25: note: expanded from macro 'strncmp' ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^~~~~~~~~~~~~~~~~~~ bashline.c:3996:7: warning: Dereference of null pointer (loaded from variable 'qcp') if (*qcp == '\0' && cs == COMPLETE_BSQUOTE && mbschr (s, '\n')) ^~~~ 10 warnings generated. rm -f list.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c list.c rm -f stringlib.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c stringlib.c stringlib.c:162:22: warning: Array access (from variable 'temp') results in a null pointer dereference temp[templen++] = *r++; ~~~~ ^ 1 warning generated. rm -f locale.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c locale.c locale.c:355:3: warning: Value stored to 't' is never read t = setlocale (LC_COLLATE, get_locale_var ("LC_COLLATE")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ locale.c:358:3: warning: Value stored to 't' is never read t = setlocale (LC_MESSAGES, get_locale_var ("LC_MESSAGES")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ locale.c:361:3: warning: Value stored to 't' is never read t = setlocale (LC_NUMERIC, get_locale_var ("LC_NUMERIC")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ locale.c:364:3: warning: Value stored to 't' is never read t = setlocale (LC_TIME, get_locale_var ("LC_TIME")); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. rm -f findcmd.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c findcmd.c findcmd.c:487:11: warning: Array access (from variable 'match_list') results in a null pointer dereference match = match_list[match_index]; ^~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f redir.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c redir.c redir.c:838:20: warning: Assigned value is garbage or undefined redirectee->flags = oflags; ^ ~~~~~~ redir.c:1140:4: warning: Value stored to 'r' is never read r = 0; ^ ~ 2 warnings generated. rm -f pcomplete.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c pcomplete.c pcomplete.c:787:8: warning: Null pointer passed as an argument to a 'nonnull' parameter dfn = savestring (text); ^~~~~~~~~~~~~~~~~ ./general.h:69:54: note: expanded from macro 'savestring' # define savestring(x) (char *)strcpy (xmalloc (1 + strlen (x)), (x)) ~~~~~~~~~~~~~^~~~~~~~~~~ ./xmalloc.h:48:32: note: expanded from macro 'xmalloc' #define xmalloc(x) sh_xmalloc((x), __FILE__, __LINE__) ^ pcomplete.c:1017:7: warning: Value stored to 'v' is never read v = bind_comp_words (lwords); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. rm -f pcomplib.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c pcomplib.c pcomplib.c:187:3: warning: Access to field 'refcount' results in a dereference of a null pointer (loaded from variable 'cs') cs->refcount++; ^~~~~~~~~~~~~~ 1 warning generated. rm -f syntax.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c syntax.c rm -f xmalloc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DDEBUG -DMALLOC_DEBUG -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -c xmalloc.c xmalloc.c:112:10: warning: Call to 'malloc' has an allocation size of 0 bytes temp = malloc (bytes); ^~~~~~~~~~~~~~ xmalloc.c:133:20: warning: Call to 'realloc' has an allocation size of 0 bytes temp = pointer ? realloc (pointer, bytes) : malloc (bytes); ^~~~~~~~~~~~~~~~~~~~~~~~ xmalloc.c:133:47: warning: Call to 'malloc' has an allocation size of 0 bytes temp = pointer ? realloc (pointer, bytes) : malloc (bytes); ^~~~~~~~~~~~~~ 3 warnings generated. make[1]: Entering directory '/home/dualbus/src/gnu/bash/builtins' rm -f builtins.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security builtins.c rm -f alias.o ./mkbuiltins -D . alias.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security alias.c || ( rm -f alias.c ; exit 1 ) rm -f alias.c rm -f bind.o ./mkbuiltins -D . bind.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security bind.c || ( rm -f bind.c ; exit 1 ) rm -f bind.c rm -f break.o ./mkbuiltins -D . break.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security break.c || ( rm -f break.c ; exit 1 ) rm -f break.c rm -f builtin.o ./mkbuiltins -D . builtin.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security builtin.c || ( rm -f builtin.c ; exit 1 ) rm -f builtin.c rm -f caller.o ./mkbuiltins -D . caller.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security caller.c || ( rm -f caller.c ; exit 1 ) rm -f caller.c rm -f cd.o ./mkbuiltins -D . cd.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security cd.c || ( rm -f cd.c ; exit 1 ) ./cd.def:158:45: warning: Access to field 'attributes' results in a dereference of a null pointer (loaded from variable 'tvar') if (old_anm == 0 && array_needs_making && exported_p (tvar)) ^~~~~~~~~~~~~~~~~ ../variables.h:137:28: note: expanded from macro 'exported_p' #define exported_p(var) ((((var)->attributes) & (att_exported))) ^~~~~~~~~~~~~~~~~~~ ./cd.def:502:3: warning: Value stored to 'list' is never read list = loptend; ^ ~~~~~~~ ./cd.def:567:3: warning: Value stored to 'dlen' is never read dlen = strlen (t); ^ ~~~~~~~~~~ 3 warnings generated. rm -f cd.c rm -f colon.o ./mkbuiltins -D . colon.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security colon.c || ( rm -f colon.c ; exit 1 ) rm -f colon.c rm -f command.o ./mkbuiltins -D . command.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security command.c || ( rm -f command.c ; exit 1 ) rm -f command.c rm -f common.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security common.c common.c:470:13: warning: Access to field 'word' results in a dereference of a null pointer (loaded from field 'word') arg = list->word->word; ^~~~~~~~~~~~~~~~ common.c:515:9: warning: Access to field 'word' results in a dereference of a null pointer (loaded from field 'word') arg = list->word->word; ^~~~~~~~~~~~~~~~ 2 warnings generated. rm -f declare.o ./mkbuiltins -D . declare.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security declare.c || ( rm -f declare.c ; exit 1 ) ./declare.def:372:7: warning: Value stored to 'var_exists' is never read var_exists = array_exists = creating_array = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./declare.def:658:4: warning: Value stored to 'var_exists' is never read var_exists = var != 0; ^ ~~~~~~~~ 2 warnings generated. rm -f declare.c rm -f echo.o ./mkbuiltins -D . echo.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security echo.c || ( rm -f echo.c ; exit 1 ) rm -f echo.c rm -f enable.o ./mkbuiltins -D . enable.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security enable.c || ( rm -f enable.c ; exit 1 ) rm -f enable.c rm -f eval.o ./mkbuiltins -D . eval.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security eval.c || ( rm -f eval.c ; exit 1 ) rm -f eval.c rm -f evalfile.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security evalfile.c evalfile.c:271:5: warning: Value stored to 'result' is never read result = EXECUTION_SUCCESS; ^ ~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f evalstring.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security evalstring.c rm -f exec.o ./mkbuiltins -D . exec.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security exec.c || ( rm -f exec.c ; exit 1 ) rm -f exec.c rm -f exit.o ./mkbuiltins -D . exit.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security exit.c || ( rm -f exit.c ; exit 1 ) rm -f exit.c rm -f fc.o ./mkbuiltins -D . fc.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fc.c || ( rm -f fc.c ; exit 1 ) ./fc.def:366:2: warning: Value stored to 'last_hist' is never read last_hist = histbeg = --histend; ^ ~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f fc.c rm -f fg_bg.o ./mkbuiltins -D . fg_bg.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fg_bg.c || ( rm -f fg_bg.c ; exit 1 ) rm -f fg_bg.c rm -f hash.o ./mkbuiltins -D . hash.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security hash.c || ( rm -f hash.c ; exit 1 ) rm -f hash.c rm -f help.o ./mkbuiltins -D . help.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security help.c || ( rm -f help.c ; exit 1 ) ./help.def:273:7: warning: Value stored to 'r' is never read r = zmapfd (fd, &line, doc[0]); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ./help.def:337:19: warning: Array access (from variable 'doc') results in a null pointer dereference for (j = 0; doc[j]; j++) ^~~~~~ 2 warnings generated. rm -f help.c rm -f history.o ./mkbuiltins -D . history.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security history.c || ( rm -f history.c ; exit 1 ) rm -f history.c rm -f jobs.o ./mkbuiltins -D . jobs.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security jobs.c || ( rm -f jobs.c ; exit 1 ) rm -f jobs.c rm -f kill.o ./mkbuiltins -D . kill.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security kill.c || ( rm -f kill.c ; exit 1 ) rm -f kill.c rm -f let.o ./mkbuiltins -D . let.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security let.c || ( rm -f let.c ; exit 1 ) rm -f let.c rm -f mapfile.o ./mkbuiltins -D . mapfile.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mapfile.c || ( rm -f mapfile.c ; exit 1 ) ./mapfile.def:163:3: warning: Value stored to 'unbuffered_read' is never read unbuffered_read = 0; ^ ~ ./mapfile.def:252:3: warning: Value stored to 'clear_array' is never read clear_array = 1; ^ ~ 2 warnings generated. rm -f mapfile.c rm -f pushd.o ./mkbuiltins -D . pushd.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security pushd.c || ( rm -f pushd.c ; exit 1 ) ./pushd.def:217:21: warning: Access to field 'word' results in a dereference of a null pointer (loaded from field 'word') if (ISOPTION (list->word->word, 'n')) ^~~~~~~~~~~~~~~~ ./common.h:26:25: note: expanded from macro 'ISOPTION' #define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c) ^ ./pushd.def:333:21: warning: Access to field 'word' results in a dereference of a null pointer (loaded from field 'word') if (ISOPTION (list->word->word, 'n')) ^~~~~~~~~~~~~~~~ ./common.h:26:25: note: expanded from macro 'ISOPTION' #define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c) ^ ./pushd.def:339:4: warning: Value stored to 'list' is never read list = list->next; ^ ~~~~~~~~~~ ./pushd.def:419:21: warning: Access to field 'word' results in a dereference of a null pointer (loaded from field 'word') if (ISOPTION (list->word->word, 'l')) ^~~~~~~~~~~~~~~~ ./common.h:26:25: note: expanded from macro 'ISOPTION' #define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c) ^ ./pushd.def:437:4: warning: Value stored to 'list' is never read list = list->next; ^ ~~~~~~~~~~ 5 warnings generated. rm -f pushd.c rm -f read.o ./mkbuiltins -D . read.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security read.c || ( rm -f read.c ; exit 1 ) rm -f read.c rm -f return.o ./mkbuiltins -D . return.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security return.c || ( rm -f return.c ; exit 1 ) rm -f return.c rm -f set.o ./mkbuiltins -D . set.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security set.c || ( rm -f set.c ; exit 1 ) ./set.def:538:11: warning: Branch condition evaluates to a garbage value if (tflag[i]) ^~~~~~~~ ./set.def:684:11: warning: Array access (from variable 'arg') results in a null pointer dereference if (arg[0] == '-' && (!arg[1] || (arg[1] == '-' && !arg[2]))) ^~~~~~ ./set.def:738:5: warning: Value stored to 'opts_changed' is never read opts_changed = 1; ^ ~ ./set.def:952:15: warning: The left operand of '==' is a garbage value if (tem == -1 && nameref == 0 && unset_function == 0 && unset_variable == 0) ~~~ ^ ./set.def:953:2: warning: Value stored to 'tem' is never read tem = unbind_func (name); ^ ~~~~~~~~~~~~~~~~~~ 5 warnings generated. rm -f set.c rm -f setattr.o ./mkbuiltins -D . setattr.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security setattr.c || ( rm -f setattr.c ; exit 1 ) rm -f setattr.c rm -f shift.o ./mkbuiltins -D . shift.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shift.c || ( rm -f shift.c ; exit 1 ) rm -f shift.c rm -f source.o ./mkbuiltins -D . source.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security source.c || ( rm -f source.c ; exit 1 ) rm -f source.c rm -f suspend.o ./mkbuiltins -D . suspend.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security suspend.c || ( rm -f suspend.c ; exit 1 ) rm -f suspend.c rm -f test.o ./mkbuiltins -D . test.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security test.c || ( rm -f test.c ; exit 1 ) rm -f test.c rm -f times.o ./mkbuiltins -D . times.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security times.c || ( rm -f times.c ; exit 1 ) rm -f times.c rm -f trap.o ./mkbuiltins -D . trap.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security trap.c || ( rm -f trap.c ; exit 1 ) ./trap.def:168:13: warning: Dereference of null pointer (loaded from variable 'first_arg') else if (*first_arg == '\0') ^~~~~~~~~~ 1 warning generated. rm -f trap.c rm -f type.o ./mkbuiltins -D . type.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security type.c || ( rm -f type.c ; exit 1 ) rm -f type.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o psize.aux ./psize.c /bin/sh ./psize.sh > pipesize.h rm -f ulimit.o ./mkbuiltins -D . ulimit.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security ulimit.c || ( rm -f ulimit.c ; exit 1 ) ./ulimit.def:413:2: warning: Value stored to 'list' is never read list = list->next; ^ ~~~~~~~~~~ 1 warning generated. rm -f ulimit.c rm -f umask.o ./mkbuiltins -D . umask.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security umask.c || ( rm -f umask.c ; exit 1 ) rm -f umask.c rm -f wait.o ./mkbuiltins -D . wait.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security wait.c || ( rm -f wait.c ; exit 1 ) rm -f wait.c rm -f getopts.o ./mkbuiltins -D . getopts.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security getopts.c || ( rm -f getopts.c ; exit 1 ) rm -f getopts.c rm -f shopt.o ./mkbuiltins -D . shopt.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shopt.c || ( rm -f shopt.c ; exit 1 ) ./shopt.def:297:3: warning: Value stored to 'rval' is never read rval = EXECUTION_SUCCESS; ^ ~~~~~~~~~~~~~~~~~ ./shopt.def:777:11: warning: Branch condition evaluates to a garbage value if (tflag[i]) ^~~~~~~~ 2 warnings generated. rm -f shopt.c rm -f printf.o ./mkbuiltins -D . printf.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security printf.c || ( rm -f printf.c ; exit 1 ) ./printf.def:725:3: warning: Value stored to 'mfw' is never read mfw = 0; ^ ~ ./printf.def:726:3: warning: Value stored to 'mpr' is never read mpr = -1; ^ ~~ ./printf.def:1253:7: warning: Value stored to 'mblength' is never read mblength = mbtowc (&wc, garglist->word->word+1, slen); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. rm -f printf.c rm -f getopt.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security getopt.c rm -f bashgetopt.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security bashgetopt.c rm -f complete.o ./mkbuiltins -D . complete.def /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security complete.c || ( rm -f complete.c ; exit 1 ) ./complete.def:358:3: warning: Value stored to 'opt_given' is never read opt_given = oflags.pflag = oflags.rflag = oflags.Dflag = oflags.Eflag = 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f complete.c rm -f libbuiltins.a ar cr libbuiltins.a builtins.o alias.o bind.o break.o builtin.o caller.o cd.o colon.o command.o common.o declare.o echo.o enable.o eval.o evalfile.o evalstring.o exec.o exit.o fc.o fg_bg.o hash.o help.o history.o jobs.o kill.o let.o mapfile.o pushd.o read.o return.o set.o setattr.o shift.o source.o suspend.o test.o times.o trap.o type.o ulimit.o umask.o wait.o getopts.o shopt.o printf.o getopt.o bashgetopt.o complete.o ranlib libbuiltins.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/builtins' making lib/glob/libglob.a in ./lib/glob make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/glob' rm -f glob.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security glob.c glob.c:192:3: warning: Value stored to 'negate' is never read negate = *pat == '!'; ^ ~~~~~~~~~~~ glob.c:238:5: warning: Undefined or garbage value returned to caller return r; ^~~~~~~~ glob.c:310:3: warning: Value stored to 'negate' is never read negate = *pat == L'!'; ^ ~~~~~~~~~~~~ glob.c:342:5: warning: Undefined or garbage value returned to caller return r; ^~~~~~~~ glob.c:367:3: warning: Value stored to 'ext' is never read ext = 0; ^ ~ glob.c:378:3: warning: Value stored to 'ret' is never read ret = 0; ^ ~ glob.c:450:3: warning: Value stored to 'n' is never read n = wcsrtombs(pathname, (const wchar_t **)&wpathname, len, &ps); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glob.c:784:18: warning: The left operand of '==' is a garbage value if (isdir == 0) ~~~~~ ^ glob.c:825:6: warning: Function call argument is an uninitialized value free (subdir); ^~~~~~~~~~~~~ ../../xmalloc.h:55:18: note: expanded from macro 'free' #define free(x) sh_xfree((x), __FILE__, __LINE__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glob.c:1315:8: warning: Potential leak of memory pointed to by 'result' if (free_dirname) ^~~~~~~~~~~~ 10 warnings generated. rm -f strmatch.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security strmatch.c rm -f smatch.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security smatch.c In file included from smatch.c:266: ./sm_loop.c:819:4: warning: Value stored to 'm1' is never read m1 = 0; ^ ~ In file included from smatch.c:401: ./sm_loop.c:819:4: warning: Value stored to 'm1' is never read m1 = 0; ^ ~ 2 warnings generated. rm -f xmbsrtowcs.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security xmbsrtowcs.c rm -f gmisc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security gmisc.c rm -f -f libglob.a ar cr libglob.a glob.o strmatch.o smatch.o xmbsrtowcs.o gmisc.o test -n "ranlib" && ranlib libglob.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/glob' making lib/sh/libsh.a in ./lib/sh make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/sh' /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security clktck.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security clock.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security getenv.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security oslib.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security setlinebuf.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security strnlen.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security itos.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security zread.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security zwrite.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shtty.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shmatch.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security eaccess.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security netconn.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security netopen.c netopen.c:267:3: warning: Undefined or garbage value returned to caller return s; ^~~~~~~~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security timeval.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security makepath.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security pathcanon.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security pathphys.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security tmpfile.c tmpfile.c:146:3: warning: Value stored to 'tdlen' is never read tdlen = strlen (tdir); ^ ~~~~~~~~~~~~~ tmpfile.c:152:7: warning: Call to function 'mktemp' is insecure as it always creates or uses insecure temporary file. Use 'mkstemp' instead if (mktemp (filename) == 0) ^~~~~~ tmpfile.c:192:3: warning: Value stored to 'tdlen' is never read tdlen = strlen (tdir); ^ ~~~~~~~~~~~~~ 3 warnings generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security stringlist.c stringlist.c:215:7: warning: Null pointer passed as an argument to a 'nonnull' parameter strcpy (t + plen, sl->list[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security stringvec.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security spell.c spell.c:143:15: warning: The left operand of '==' is a garbage value if (best[0] == '.' && best[1] == '\0') ~~~~~~~ ^ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shquote.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security strtrans.c strtrans.c:233:3: warning: Value stored to 's' is never read s = str; ^ ~~~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security snprintf.c snprintf.c:715:3: warning: Value stored to 'flags' is never read flags = 0; ^ ~ snprintf.c:1301:7: warning: Value stored to 'state' is never read state = 1; ^ ~ 2 warnings generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mailstat.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fmtulong.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fmtullong.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fmtumax.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security zcatfd.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security zmapfd.c zmapfd.c:55:3: warning: Value stored to 'rval' is never read rval = 0; ^ ~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security winsize.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security wcsdup.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fpurge.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security zgetline.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mbscmp.c mbscmp.c:38:3: warning: Value stored to 'len1' is never read len1 = len2 = 0; ^ ~~~~~~~~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security uconvert.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security ufuncs.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security casemod.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security input_avail.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mbscasecmp.c mbscasecmp.c:41:3: warning: Value stored to 'len1' is never read len1 = len2 = 0; ^ ~~~~~~~~ 1 warning generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security fnxform.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security unicode.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shmbchar.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security wcsnwidth.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -I. -I../.. -I../.. -I../../lib -I../../include -I. -DHAVE_CONFIG_H -DSHELL -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mbschr.c rm -f libsh.a ar cr libsh.a clktck.o clock.o getenv.o oslib.o setlinebuf.o strnlen.o itos.o zread.o zwrite.o shtty.o shmatch.o eaccess.o netconn.o netopen.o timeval.o makepath.o pathcanon.o pathphys.o tmpfile.o stringlist.o stringvec.o spell.o shquote.o strtrans.o snprintf.o mailstat.o fmtulong.o fmtullong.o fmtumax.o zcatfd.o zmapfd.o winsize.o wcsdup.o fpurge.o zgetline.o mbscmp.o uconvert.o ufuncs.o casemod.o input_avail.o mbscasecmp.o fnxform.o unicode.o shmbchar.o wcsnwidth.o mbschr.o test -n "ranlib" && ranlib libsh.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/sh' making lib/readline/libreadline.a in ./lib/readline make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/readline' rm -f readline.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security readline.c rm -f vi_mode.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security vi_mode.c rm -f funmap.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security funmap.c funmap.c:267:3: warning: Null pointer passed as an argument to a 'nonnull' parameter qsort (result, result_index, sizeof (char *), (QSFUNC *)_rl_qsort_string_compare); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f keymaps.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security keymaps.c rm -f parens.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security parens.c parens.c:138:7: warning: Value stored to 'ready' is never read ready = select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. rm -f search.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security search.c search.c:372:3: warning: Value stored to 'r' is never read r = 0; ^ ~ 1 warning generated. rm -f rltty.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security rltty.c rm -f complete.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security complete.c complete.c:1031:3: warning: Undefined or garbage value returned to caller return printed_len; ^~~~~~~~~~~~~~~~~~ complete.c:1256:19: warning: Null pointer passed as an argument to a 'nonnull' parameter lowest_common = savestring (matches[0]); ^~~~~~~~~~~~~~~~~~~~~~~ ./rldefs.h:119:52: note: expanded from macro 'savestring' #define savestring(x) strcpy ((char *)xmalloc (1 + strlen (x)), (x)) ^~~~~~~~~~ complete.c:1428:9: warning: Null pointer passed as an argument to a 'nonnull' parameter si = strlen (text); ^~~~~~~~~~~~~ complete.c:1539:3: warning: Value stored to 'common_length' is never read common_length = sind = 0; ^ ~~~~~~~~ complete.c:1553:2: warning: Value stored to 'common_length' is never read common_length = sind = 0; ^ ~~~~~~~~ complete.c:1563:2: warning: Value stored to 'common_length' is never read common_length = sind = 0; ^ ~~~~~~~~ 6 warnings generated. rm -f bind.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security bind.c bind.c:745:11: warning: Dereference of null pointer if (map[ic].type == ISKMAP) ^~~~~~~~~~~~ 1 warning generated. rm -f isearch.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security isearch.c isearch.c:757:3: warning: Value stored to 'r' is never read r = -1; ^ ~~ isearch.c:760:7: warning: Value stored to 'c' is never read c = _rl_search_getchar (cxt); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ isearch.c:784:3: warning: Value stored to 'c' is never read c = _rl_search_getchar (cxt); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. rm -f display.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security display.c display.c:825:3: warning: Value stored to 'num' is never read num = 0; ^ ~ display.c:834:3: warning: Value stored to 'prompt_lines_estimate' is never read prompt_lines_estimate = lpos / _rl_screenwidth; ^ ~~~~~~~~~~~~~~~~~~~~~~ display.c:1611:4: warning: Value stored to 'new_offset' is never read new_offset = old_offset = temp; ^ ~~~~~~~~~~~~~~~~~ display.c:1623:8: warning: Value stored to 'old_offset' is never read old_offset = omax; ^ ~~~~ display.c:1624:8: warning: Value stored to 'new_offset' is never read new_offset = nmax; ^ ~~~~ 5 warnings generated. rm -f signals.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security signals.c rm -f util.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security util.c rm -f kill.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security kill.c kill.c:134:34: warning: Null pointer passed as an argument to a 'nonnull' parameter new = (char *)xmalloc (1 + strlen (old) + strlen (text)); ^~~~~~~~~~~~ kill.c:580:2: warning: Value stored to 'entry' is never read entry = previous_history (); ^ ~~~~~~~~~~~~~~~~~~~ 2 warnings generated. rm -f undo.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security undo.c rm -f macro.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security macro.c rm -f input.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security input.c input.c:220:3: warning: Value stored to 'result' is never read result = -1; ^ ~~ input.c:509:7: warning: Value stored to 'result' is never read result = 0; ^ ~ 2 warnings generated. rm -f callback.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security callback.c callback.c:172:4: warning: Value stored to 'eof' is never read eof = _rl_nsearch_callback (_rl_nscxt); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callback.c:209:4: warning: Value stored to 'eof' is never read eof = _rl_vi_domove_callback (_rl_vimvcxt); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. rm -f terminal.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security terminal.c rm -f text.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security text.c text.c:777:7: warning: Value stored to 'incoming_length' is never read incoming_length = 0; ^ ~ text.c:821:7: warning: Value stored to 'incoming_length' is never read incoming_length = 0; ^ ~ text.c:884:5: warning: Value stored to 'k' is never read k = _rl_read_mbstring (c, mbkey, MB_LEN_MAX); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. rm -f nls.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security nls.c rm -f misc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security misc.c rm -f history.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security history.c rm -f histexpand.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security histexpand.c histexpand.c:772:7: warning: Value stored to 'ws' is never read ws = si; ^ ~~ histexpand.c:1245:3: warning: Value stored to 'first' is never read first = last = 0; ^ ~~~~~~~~ 2 warnings generated. rm -f histfile.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security histfile.c histfile.c:589:46: warning: The left operand of '-' is a garbage value history_lines_written_to_file = orig_lines - lines; ~~~~~~~~~~ ^ histfile.c:607:5: warning: Value stored to 'r' is never read r = chown (filename, finfo.st_uid, finfo.st_gid); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ histfile.c:697:22: warning: Call to 'malloc' has an allocation size of 0 bytes buffer = (char *)malloc (buffer_size); ^~~~~~~~~~~~~~~~~~~~ histfile.c:754:5: warning: Value stored to 'mode' is never read mode = chown (histname, finfo.st_uid, finfo.st_gid); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. rm -f histsearch.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security histsearch.c rm -f shell.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security shell.c rm -f savestring.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security savestring.c rm -f mbutil.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security mbutil.c mbutil.c:86:3: warning: Value stored to 'tmp' is never read tmp = 0; ^ ~ mbutil.c:276:3: warning: Value stored to 'tmp' is never read tmp = 0; ^ ~ 2 warnings generated. rm -f tilde.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security -DREADLINE_LIBRARY -c ./tilde.c rm -f colors.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security colors.c rm -f parse-colors.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security parse-colors.c rm -f xmalloc.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security xmalloc.c rm -f xfree.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security xfree.c rm -f compat.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I/home/dualbus/src/gnu/bash -I../.. -I../../lib -DDEBUG -g -O2 -Wno-parentheses -Wno-format-security compat.c rm -f libreadline.a ar cr libreadline.a readline.o vi_mode.o funmap.o keymaps.o parens.o search.o rltty.o complete.o bind.o isearch.o display.o signals.o util.o kill.o undo.o macro.o input.o callback.o terminal.o text.o nls.o misc.o history.o histexpand.o histfile.o histsearch.o shell.o savestring.o mbutil.o tilde.o colors.o parse-colors.o xmalloc.o xfree.o compat.o test -n "ranlib" && ranlib libreadline.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/readline' making lib/readline/libhistory.a in ./lib/readline make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/readline' rm -f libhistory.a ar cr libhistory.a history.o histexpand.o histfile.o histsearch.o shell.o savestring.o mbutil.o xmalloc.o xfree.o test -n "ranlib" && ranlib libhistory.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/readline' making lib/tilde/libtilde.a in ./lib/tilde make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/tilde' /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I. -I../.. -I../.. -I../../include -I../../lib -g -O2 -Wno-parentheses -Wno-format-security tilde.c rm -f libtilde.a ar cr libtilde.a tilde.o test -n "ranlib" && ranlib libtilde.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/tilde' make[1]: Entering directory '/home/dualbus/src/gnu/bash/lib/malloc' /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -I. -I../.. -I../.. -I../../include -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -Wno-parentheses -Wno-format-security -DRCHECK -Dbotch=programming_error -DMALLOC_DEBUG -c malloc.c malloc.c:967:5: warning: Function call argument is an uninitialized value mtrace_free (mem, ubytes, file, line); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ malloc.c:969:5: warning: Function call argument is an uninitialized value mtrace_free (mem, ubytes, file, line); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -I. -I../.. -I../.. -I../../include -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -Wno-parentheses -Wno-format-security -DRCHECK -Dbotch=programming_error -DMALLOC_DEBUG -c trace.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -I. -I../.. -I../.. -I../../include -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -Wno-parentheses -Wno-format-security -DRCHECK -Dbotch=programming_error -DMALLOC_DEBUG -c stats.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -I. -I../.. -I../.. -I../../include -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -Wno-parentheses -Wno-format-security -DRCHECK -Dbotch=programming_error -DMALLOC_DEBUG -c table.c /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -I. -I../.. -I../.. -I../../include -I../../lib -DHAVE_CONFIG_H -DSHELL -g -O2 -Wno-parentheses -Wno-format-security -DRCHECK -Dbotch=programming_error -DMALLOC_DEBUG -c watch.c rm -f libmalloc.a ar cr libmalloc.a malloc.o trace.o stats.o table.o watch.o test -n "ranlib" && ranlib libmalloc.a make[1]: Leaving directory '/home/dualbus/src/gnu/bash/lib/malloc' rm -f bash /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lglob -lsh -lreadline -lhistory -ltermcap -ltilde -lmalloc -ldl ./lib/sh/libsh.a(tmpfile.o): In function `sh_mktmpname': /home/dualbus/src/gnu/bash/lib/sh/tmpfile.c:152: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' ls -l bash -rwxr-x--- 1 dualbus dualbus 4721120 Apr 26 07:40 bash size bash text data bss dec hex filename 1149385 47912 632936 1830233 1bed59 bash make[1]: Entering directory '/home/dualbus/src/gnu/bash/support' rm -f man2html.o /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -c -DHAVE_CONFIG_H -DSHELL -I/home/dualbus/src/gnu/bash -I.. -g -O2 -Wno-parentheses -Wno-format-security man2html.c man2html.c:1512:3: warning: Value stored to 'h' is never read h = c; ^ ~ man2html.c:2242:13: warning: Value stored to 'oldcurpos' during its initialization is never read int oldcurpos = curpos; ^~~~~~~~~ ~~~~~~ man2html.c:2565:5: warning: Value stored to 'buf' is never read buf = stralloc(l + 4); ^ ~~~~~~~~~~~~~~~ man2html.c:2640:4: warning: Value stored to 'h' is never read h = c; ^ ~ man2html.c:2808:4: warning: Value stored to 'sl' is never read sl = fill_words(c + j, wordlist, &words); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ man2html.c:4013:2: warning: Value stored to 'i' is never read i = 0; ^ ~ 6 warnings generated. /usr/share/clang/scan-build-3.9/bin/../libexec/ccc-analyzer -DHAVE_CONFIG_H -DSHELL -I/home/dualbus/src/gnu/bash -I.. -g -O2 -Wno-parentheses -Wno-format-security man2html.o -o man2html -ldl make[1]: Leaving directory '/home/dualbus/src/gnu/bash/support' scan-build: 263 bugs found. scan-build: Run 'scan-view /tmp/scan-build-2017-04-26-073141-28192-1' to examine bug reports. dualbus@debian:~/src/gnu/bash$ dpkg -S /usr/bin/scan-build-3.9 clang-3.9: /usr/bin/scan-build-3.9 dualbus@debian:~/src/gnu/bash$ dpkg -l clang-3.9 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-============================================================ ii clang-3.9 1:3.9.1-7 amd64 C, C++ and Objective-C compiler (LLVM based) dualbus@debian:~/src/gnu/bash$ exit Script done on Wed 26 Apr 2017 07:41:23 AM CDT