| Summary: | Possible use of uninitialized value in __syscall_error.c | ||
|---|---|---|---|
| Product: | uClibc | Reporter: | Jeffrey Walton <noloader> |
| Component: | Other | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | uclibc-cvs |
| Priority: | P5 | ||
| Version: | 0.9.33.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
CC=clang CC libc/sysdeps/linux/x86_64/__syscall_error.os libc/sysdeps/linux/x86_64/__syscall_error.c:19:14: warning: variable 'err_no' is uninitialized when used here [-Wuninitialized] __set_errno(err_no); ~~~~~~~~~~~~^~~~~~~ ./include/errno.h:79:36: note: expanded from macro '__set_errno' #define __set_errno(val) (errno = (val)) ^ libc/sysdeps/linux/x86_64/__syscall_error.c:16:21: note: initialize the variable 'err_no' to silence this warning register int err_no __asm__ ("%rcx"); ^ = 0 1 warning generated.