Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: 提交

external/libdrm


Commit MetaInfo

修订版5ea0003c0b3266d7cc319628371192433560d576 (tree)
时间2020-05-23 23:07:16
作者Mauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Log Message

tests/util: avoid sign compare building error

cflag -Wno-sign-compare avoids the following building errors:

external/libdrm/tests/util/pattern.c:1118:16: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (i = 0; i < height / 2; i++) {
~

external/libdrm/tests/util/pattern.c:1121:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (j = 0; j < width / 2; j++) {
~ ~

external/libdrm/tests/util/pattern.c:1128:11: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (; i < height; i++) {
~

external/libdrm/tests/util/pattern.c:1131:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (j = 0; j < width / 2; j++) {
~ ~

external/libdrm/tests/util/pattern.c:1146:16: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (i = 0; i < height / 2; i++) {
~

external/libdrm/tests/util/pattern.c:1149:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (j = 0; j < width / 2; j++) {
~ ~

external/libdrm/tests/util/pattern.c:1156:11: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (; i < height; i++) {
~

external/libdrm/tests/util/pattern.c:1159:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]

for (j = 0; j < width / 2; j++) {
~ ~

8 errors generated.

更改概述

差异

--- a/tests/util/Android.bp
+++ b/tests/util/Android.bp
@@ -32,4 +32,8 @@ cc_library_static {
3232 shared_libs: ["libdrm"],
3333 header_libs: ["libdrm_test_headers"],
3434 export_header_lib_headers: ["libdrm_test_headers"],
35+
36+ cflags: [
37+ "-Wno-sign-compare",
38+ ],
3539 }
Show on old repository browser