"Absolute value error" build failure(s)
clang 12.0.1
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 |
libomxxvideo | 0.1-4 | omx_xvideo_sink_component.c:121:45: error: absolute value function 'abs' given an argument of type 'OMX_S32' (aka 'long') but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
| Log |
|
1 errors