"Potential usage of an uninitialized variable" build failure(s)
clang 3.2
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 |
altermime | 0.3.10-7 | mime_alter.c:709:13: error: variable 'newblock' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
753058
|
drivel | 3.0.3-1 | dialogs.c:880:6: error: variable 'friend' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
|
gcompris | 12.01-1 | gameutil.c:461:5: error: variable 'y2' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
| Log |
|
geoclue | 0.12.0-4 | master-provider.c:176:6: error: variable 'new_hor_acc' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
|
libnss-cache | 0.10.2-1 | nss_cache.c:155:11: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
745258
|
libpam-abl | 0.4.3-1 | pam_abl.c:162:9: error: variable 'dbenv' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
| Log |
|
tpm-tools | 1.3.7-1 | tpm_present.c:189:9: error: variable 'hTpmPolicy' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
| Log |
753063
|
tuxpuck | 0.8.2-2.2 | ttf2font.c:56:7: error: variable 'ysize' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
| Log |
753064
|
8 errors