Skip to content

Instantly share code, notes, and snippets.

@radare
Created February 5, 2015 15:34
Show Gist options
  • Save radare/fa86e9f2e35c25b34f97 to your computer and use it in GitHub Desktop.
Save radare/fa86e9f2e35c25b34f97 to your computer and use it in GitHub Desktop.
type punned warns in tccgen
```
tccgen.c: In function 'is_compatible_func':
tccgen.c:514:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
if (FUNC_CALL(s1->r) != FUNC_CALL(s2->r))
^
tccgen.c:514:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
tccgen.c: In function 'parse_btype':
tccgen.c:1220:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ad->aligned = FUNC_ALIGN(s->r);
^
tccgen.c:1222:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ad->func_call = FUNC_CALL(s->r);
^
tccgen.c:1223:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ad->packed |= FUNC_PACKED(s->r);
^
tccgen.c: In function 'decl0':
tccgen.c:2818:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
&& FUNC_CALL(type.ref->r) == FUNC_CDECL)
^
tccgen.c:2819:25: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
FUNC_CALL(type.ref->r) = FUNC_CALL(r);
^
tccgen.c:2823:25: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
FUNC_EXPORT(type.ref->r) = 1;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment