external/libdrm
修订版 | 5ea0003c0b3266d7cc319628371192433560d576 (tree) |
---|---|
时间 | 2020-05-23 23:07:16 |
作者 | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Mauro Rossi |
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]
external/libdrm/tests/util/pattern.c:1121:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1128:11: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1131:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1146:16: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1149:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1156:11: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
external/libdrm/tests/util/pattern.c:1159:17: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
8 errors generated.
@@ -32,4 +32,8 @@ cc_library_static { | ||
32 | 32 | shared_libs: ["libdrm"], |
33 | 33 | header_libs: ["libdrm_test_headers"], |
34 | 34 | export_header_lib_headers: ["libdrm_test_headers"], |
35 | + | |
36 | + cflags: [ | |
37 | + "-Wno-sign-compare", | |
38 | + ], | |
35 | 39 | } |