I agree, it’s only a warning, and it might be overly cautious to warn about these situations.
the original issue was that OP’s code doesn’t use the GPU… so I wonder, does OpenCV even see the GPU at runtime, let alone pick or be forced to use it? I am unfamiliar with the cuda modules, cuda4dnn in particular. how can that be determined?