I want to disable a specific compiler warning with nvcc, specifically
warning: NULL reference is not allowed
The co
To augment user2333829's answer: if you know the warning name you can disable it like this:
-Xcudafe "--diag_suppress=boolean_controlling_expr_is_constant"
If you don't know the name, get warning numbers by compiling with:
-Xcudafe --display_error_number
And then with:
-Xcudafe --diag_suppress=
(Note: both options at the same time apparently don't work.)