Skip to content

Commit

Permalink
Remove the XN_COMPILER_ASSERT macro. It was causing some compilation …
Browse files Browse the repository at this point in the history
…warnings.
  • Loading branch information
eddiecohen committed Nov 3, 2013
1 parent 325cd52 commit 261a5bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,6 @@ XnStatus LinkControlEndpoint::EnumerateStreams(xnl::Array<XnFwStreamInfo>& aStre
for (XnUInt32 i = 0; i < nNumNodes; i++)
{
aStreamInfos[i].type = (XnFwStreamType)XN_PREPARE_VAR32_IN_BUFFER(pEnumerateNodesResponse->m_streamInfos[i].m_nStreamType);
XN_COMPILER_ASSERT(sizeof(aStreamInfos[i].creationInfo) >= sizeof(pEnumerateNodesResponse->m_streamInfos[i].m_strCreationInfo));
xnOSStrCopy(aStreamInfos[i].creationInfo,
pEnumerateNodesResponse->m_streamInfos[i].m_strCreationInfo,
sizeof(aStreamInfos[i].creationInfo));
Expand Down
6 changes: 0 additions & 6 deletions Source/Drivers/PSLink/LinkProtoLib/XnLinkProtoUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

#define XN_MASK_LINK "xnLink"

#ifndef XN_COMPILER_ASSERT
#define XN_COMPILER_ASSERT(x) typedef int compileAssert[x ? 1 : -1]
#endif

template <typename T>
class XnArray;

Expand Down Expand Up @@ -48,8 +44,6 @@ class LinkPacketHeader : private XnLinkPacketHeader
void SetCID(XnUInt16 nCID) { m_nCID = nCID; }
};

XN_COMPILER_ASSERT(sizeof(xn::LinkPacketHeader) == sizeof(XnLinkPacketHeader));

}

XnStatus xnLinkResponseCodeToStatus(XnUInt16 nResponseCode);
Expand Down

0 comments on commit 261a5bd

Please sign in to comment.