CUDA __shared__ memory warning needed

I have spent a day chasing a mysterious bug which turns out to due to setting
shared memory bytes to 0 on <<>>. Ok my mistake but it would
have been nice if the complier or runtime system had said “Ahem I see you
are using non-existant shared memory. Are you sure you really want to do that.”