Skip to content

Commit e75ea6f

Browse files
committed
suppress warning p4 hides global declaration
1 parent b71dc21 commit e75ea6f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/game/shared/util_shared.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,10 @@ int UTIL_CalcFrustumThroughConvexPolygon( const Vector *pPolyVertices, int iPoly
18371837
i3 = (iMinSideFirstPoint + 1)%(iOldVertCount);
18381838
i4 = (iMinSideFirstPoint + 2)%(iOldVertCount);
18391839

1840+
#pragma warning(push)
1841+
#pragma warning(disable: 4459) // declaration of 'p4' hides global declaration
18401842
Vector *p1, *p2, *p3, *p4;
1843+
#pragma warning(pop)
18411844
p1 = &pClippedVerts[i1];
18421845
p2 = &pClippedVerts[i2];
18431846
p3 = &pClippedVerts[i3]; //this is the one we'll actually be dropping in the merge

0 commit comments

Comments
 (0)