This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: why this statement will cause analysis error?
Lu Fan wrote:
Hi all:
I use a tool to check my code, and it reports a error on a statement:
like:
typedef a{
int m;
char sz_a[11];
char n;
}t_a;
the memcpy will cause analysis error? The tool reports Overrun.
Perhaps the tool is confused by the typedef.
Make it
typedef struct a{
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077