vendredi 6 août 2021

How to get compiler to ignore -Wfatal-errors temporarily

SystemDateAndTime.cpp:205:14: error: ‘stime’ was not declared in this scope; did you mean ‘ftime’?
  205 |    if( -1 == stime( &systime ) )
      |              ^~~~~
      |              ftime
compilation terminated due to -Wfatal-errors

How to ask the compiler to proceed. Is there something similar to -Wno-error (with which we ask compiler to not consider warnings as errors) , perhaps -Wno-fatal-errors ?

I know that this code will compile with linaro-aarch64-2017.08-gcc7.1 (and g++). I am trying to compile the same with gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc (and g++) only so that I can make use of -fsanitize=address,undefined for Address Sanitizer. So I am desperate for the compilation to proceed really !

Aucun commentaire:

Enregistrer un commentaire