I want to disable a specific compiler warning with nvcc
, specifically
warning: NULL reference is not allowed
The code I am working on uses NULL
references are part of SFINAE, so they can't be avoided.
An ideal solution would be a #pragma
in just the source file where we want to disable the warnings, but a compiler flag would also be fine, if one exists to turn off only the warning in question.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…