Fix warnings: computed value not use, incompatible pointer initialization