nvc0/ir: Initialize Limits members in constructor.

Fix defect reported by Coverity Scan.

Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member min is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member max is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11351>
This commit is contained in:
Vinson Lee
2021-06-13 17:09:46 -07:00
committed by Marge Bot
parent 5f771134ad
commit 2624765e66
@@ -100,7 +100,7 @@ private:
};
struct Limits
{
Limits() { }
Limits() : min(0), max(0) { }
Limits(int min, int max) : min(min), max(max) { }
int min, max;
};