how can I disable nvcc w<arnings altogether? I tried the gcc option -w as well as different -Wno but they’re not recognized by nvcc.
I tried looking in nvcc doc but couldn’t find anything.
nvcc … >& /dev/null
Thanks for the tip, but what about VS 2005 & Windows?
also, wouldn’t this disable error messages too, when I just want to disable warnings ?
Nvcc does not have such an option, but the -w options can be passed to the native compiler using -Xcompiler, as in
nvcc x.cu -Xcompiler "-w"
Note that multiple options must be passed either by repeating -Xcompiler, or by surrounding quotes.