"Absolute value error" build failure(s)
clang 3.6.0
Probably a mistake:
#include <stdlib.h>
void foo() {
unsigned int i=0; /* absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] */
abs(i);
unsigned int j=0; /* taking the absolute value of unsigned type 'unsigned int' has no effect */
abs(j);
}
gcc does not display any warning.
Package | Version | Supposed error message | Full log |
Bug report |
libgadu | 1:1.12.0-5 | handlers.c:1423:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
| Log |
|
pulseview | 0.2.0-1 | sweeptimingwidget.cpp:172:33: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
| Log |
|
putty | 0.63-10 | x11fwd.c:315:6: error: taking the absolute value of unsigned type 'unsigned long' has no effect [-Werror,-Wabsolute-value]
| Log |
|
rockdodger | 1.0.0-1 | greeblies.c:130:12: error: using integer absolute value function 'abs' when argument is of floating point type [-Werror,-Wabsolute-value]
| Log |
|
sgt-puzzles | 20140928.r10274-1 | ./keen.c:1046:21: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
| Log |
|
5 errors