oizma / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

assignment discards qualifiers from pointer target type in ScanFromString #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build angle

What is the expected output?
no warnings that assignment discards qualifiers from pointer target type

What do you see instead?
compiler/preprocessor/scanner.c:
 In function ‘ScanFromString’:
178: warning: assignment discards qualifiers from pointer target type

What version of the product are you using?
498

On what operating system?
os x

Please provide any additional information below.

typedef struct StringInputSrc {
    InputSrc base;
    char *p;
} StringInputSrc;

int ScanFromString(const char *s)
    StringInputSrc *in = malloc(sizeof(StringInputSrc));
    in->p = s;

Original issue reported on code.google.com by timel...@gmail.com on 1 Dec 2010 at 10:43

GoogleCodeExporter commented 9 years ago
Fixed in r535

Original comment by dan...@transgaming.com on 19 Jan 2011 at 5:52