Closed Bug 614682 Opened 14 years ago Closed 14 years ago

thebeslayerd3d10.cpp warning C4700: uninitialized local variable 'hr'

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 601273

People

(Reporter: ronny.perinke, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13pre) Gecko/20101122 Firefox/3.6.13pre (.NET CLR 3.5.30729) (Sephiroth/SSE2)
Build Identifier: 

Compiling with Visual Studio 2010 gave the following warning about an uninitialized variable.

gfx\layers\d3d10\thebeslayerd3d10.cpp(137) : warning C4700: uninitialized local variable 'hr'

Reproducible: Always




hr is used the first (and only) time here

HRESULT hr;
...
      if (SUCCEEDED(hr)) {
        retainedRegion.Or(retainedRegion, *r);
      }
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.