Fixed a lot of single-type gcc warning:
warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] FYI, "-Wcast-qual" is not a default option. The main idea: If some function receives "const void*" why should it operate with "void*" (or something) afterwards (after casting)?
Showing
想要评论请 注册 或 登录