"Potential usage of an uninitialized variable" build failure(s)
clang 8.0.1
int f(int b) {
int n;
if (b)
n = 1;
return n;
}
In some cases,
n can be uninitialized.
gcc -Werror plop.c will accept this code while
clang -Werror plop.c will fail.
Package | Version | Supposed error message | Full log |
Bug report |
gsequencer | 3.1.3-1 | ags/X/editor/ags_automation_meta.c:823:16: error: variable 'start_channel' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
|
monkeysphere | 0.43-3 | src/agent-transfer/main.c:409:14: error: variable 'mpilen' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
|
vzquota | 3.1-4 | quotaon.c:1002:7: error: variable 'ugid' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
| Log |
753065
|
3 errors