Compartilhar via


PREfast Warning 304 (Windows CE 5.0)

Send Feedback

304 - Address of local array <variable> is the same as the local array variable.
Question: The address of operation is a no-op. Was this intended?

This warning indicates a redundant operation that might not be intended.

Example

Defective Source

wchar_t a[5];
wchar_t *p;
// Skip over couple of backslashes, but forgot the index.
p = &a;

Corrected Source

wchar_t a[5];
wchar_t *p;
// Skip over couple of backslashes.
p = &a[2];

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.