mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 18:07:12 +01:00
Issue 1236
This commit is contained in:
parent
2da7b2f549
commit
4b4aaf7dc5
@ -25,8 +25,8 @@ cfg_ver = {
|
||||
|
||||
SNIP_FUNCTION = '''
|
||||
int main(int argc, char **argv) {
|
||||
(void)argc; (void)argv;
|
||||
void *p;
|
||||
(void)argc; (void)argv;
|
||||
p=(void*)(%s);
|
||||
return 0;
|
||||
}
|
||||
@ -52,8 +52,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
SNIP_FIELD = '''
|
||||
int main(int argc, char **argv) {
|
||||
(void)argc; (void)argv;
|
||||
char *off;
|
||||
(void)argc; (void)argv;
|
||||
off = (char*) &((%(type_name)s*)0)->%(field_name)s;
|
||||
return (size_t) off < sizeof(%(type_name)s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user