Replace use of -Wno-error and only ignore specific warnings