lundi 26 septembre 2016

Turn off type conversion in clang

I am migrating a legacy code from gcc to clang. There are a lot of type conversion issue in the code i.e. arithmetic operation on void pointer, const char* to char* conversion, unsigned char* to char* conversion,assigning parent class object to child class. Since code base is very large, it will be very cumbersome task to typecast everything. Is there any(or set of) flag(s) using which I can turn off these error? I have tried -fpermissive or -Wno-error-(error type).

Aucun commentaire:

Enregistrer un commentaire