更新时间:2022-10-15 17:26:14
You can kind of do it with GCC, almost, using #pragma GCC diagnostic ignored
, but unluckily not very well, see here.
The problem is that you cannot just "disable all", you have to disable each single one. Plus, for some warnings it doesn't work (and the docs don't tell you which ones...).
My guess is that this somewhat preliminary and will (hopefully) be improved in the next version.