大量隐式转换的报错,这一类问题可以在Android.bp文件里面尝试添加
"-Wconversion",
"-Wsign-conversion",
"-Wno-error=conversion",
"-Wno-error=sign-conversion",
"-Wno-strict-aliasing",
"-Wunused-variable",
"-Wno-unused-parameter",
参数
frameworks/native/services/surfaceflinger/renderengine/RenderEngine.cpp:68:24: error: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'GLsizei' (aka 'int') [-Werror,-Wsign-conversion]
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data());
~~~~~~~~~~~~ ^~~~~
frameworks/native/services/surfaceflinger/renderengine/RenderEngine.cpp:68:31: error: implicit conversion changes signedness: 'uint32_t' (aka 'unsigned int') to 'GLsizei' (aka 'int') [-Werror,-Wsign-conversion]
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data());