[Bug 775112] New: clang compiler warnings due to integer conversions
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Nov 25 18:53:11 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=775112
Bug ID: 775112
Summary: clang compiler warnings due to integer conversions
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-base
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: hanno at hboeck.de
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
By default the git code of the gstreamer modules enables -Werror, so all
compiler warnings are fatal.
Compiling with clang causes several compiler warnings related to integer casts:
tmp-orc.c:931:13: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var36 = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:1504:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:1505:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2128:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2129:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2563:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2564:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2794:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:2795:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:3236:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:3237:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var37.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:3474:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var38.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:3475:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var38.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:3895:13: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var36 = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:4241:13: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var33 = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:4243:15: error: implicit conversion from 'int' to 'orc_int16' (aka
'short') changes value from 32896 to
-32640 [-Werror,-Wconstant-conversion]
var35.i = (int)0x00008080; /* 32896 or 1.62528e-319f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:5252:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var36.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:5253:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var36.x2[1] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
tmp-orc.c:5639:19: error: implicit conversion from 'int' to 'orc_int8' (aka
'signed char') changes value from 255 to
-1 [-Werror,-Wconstant-conversion]
var36.x2[0] = (int)0x000000ff; /* 255 or 1.25987e-321f */
~ ^~~~~~~~~~~~~~~
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list