Code Review feedback

This commit is contained in:
walbourn_cp 2014-07-01 12:36:30 -07:00
parent d7d90d4911
commit c3ac93db96
3 changed files with 5 additions and 4 deletions

View File

@ -1431,7 +1431,7 @@ void D3DX_BC6H::GeneratePaletteQuantized(const EncodeParams* pEP, const INTEndPn
assert(false); assert(false);
for(size_t i = 0; i < uNumIndices; ++i) for(size_t i = 0; i < uNumIndices; ++i)
{ {
#pragma prefast(suppress:22103, "writing blocks in two halves confuses tool") #pragma prefast(suppress:22102 22103, "writing blocks in two halves confuses tool")
aPalette[i] = INTColor(0,0,0); aPalette[i] = INTColor(0,0,0);
} }
return; return;
@ -1827,7 +1827,7 @@ void D3DX_BC6H::GeneratePaletteUnquantized(const EncodeParams* pEP, size_t uRegi
assert(false); assert(false);
for(size_t i = 0; i < uNumIndices; ++i) for(size_t i = 0; i < uNumIndices; ++i)
{ {
#pragma prefast(suppress:22103, "writing blocks in two halves confuses tool") #pragma prefast(suppress:22102 22103, "writing blocks in two halves confuses tool")
aPalette[i] = INTColor(0,0,0); aPalette[i] = INTColor(0,0,0);
} }
return; return;

View File

@ -721,8 +721,8 @@ bool _ExpandScanline( LPVOID pDestination, size_t outSize, DXGI_FORMAT outFormat
}\ }\
return false; return false;
_Use_decl_annotations_ #pragma warning(suppress: 6101)
bool _LoadScanline( XMVECTOR* pDestination, size_t count, _Use_decl_annotations_ bool _LoadScanline( XMVECTOR* pDestination, size_t count,
LPCVOID pSource, size_t size, DXGI_FORMAT format ) LPCVOID pSource, size_t size, DXGI_FORMAT format )
{ {
assert( pDestination && count > 0 && (((uintptr_t)pDestination & 0xF) == 0) ); assert( pDestination && count > 0 && (((uintptr_t)pDestination & 0xF) == 0) );

View File

@ -58,6 +58,7 @@ using Microsoft::WRL::ComPtr;
#else #else
#pragma prefast(suppress:28196, "a simple wrapper around an existing annotated function" );
static inline HRESULT CreateMemoryStream( _Outptr_ IStream** stream ) static inline HRESULT CreateMemoryStream( _Outptr_ IStream** stream )
{ {
return CreateStreamOnHGlobal( 0, TRUE, stream ); return CreateStreamOnHGlobal( 0, TRUE, stream );