gnu.cfg: Add support for macro __extension__
The macro does nothing except preventing from warnings when compiling with "pedantic" or other options.
This commit is contained in:
parent
174badf242
commit
7277fe5a2b
|
@ -46,6 +46,7 @@
|
||||||
<define name="__builtin_nanf(str)" value="nanf(str)"/>
|
<define name="__builtin_nanf(str)" value="nanf(str)"/>
|
||||||
<define name="__builtin_nanl(str)" value="nanl(str)"/>
|
<define name="__builtin_nanl(str)" value="nanl(str)"/>
|
||||||
<define name="__builtin_signbit(value)" value="signbit(value)"/>
|
<define name="__builtin_signbit(value)" value="signbit(value)"/>
|
||||||
|
<define name="__extension__" value=""/>
|
||||||
<!-- void *__builtin_alloca (size_t size) -->
|
<!-- void *__builtin_alloca (size_t size) -->
|
||||||
<!-- alloca() is often defined as __builtin_alloca() so the define above does not work always -->
|
<!-- alloca() is often defined as __builtin_alloca() so the define above does not work always -->
|
||||||
<!-- void *alloca(size_t size); -->
|
<!-- void *alloca(size_t size); -->
|
||||||
|
|
|
@ -137,6 +137,9 @@ void valid_code(int argInt1, va_list valist_arg)
|
||||||
if (vasprintf(&pStr, "%d %d", valist_arg) != -1) {
|
if (vasprintf(&pStr, "%d %d", valist_arg) != -1) {
|
||||||
free(pStr);
|
free(pStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("%d", 0b010);
|
||||||
|
printf("%d", __extension__ 0b10001000);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ignoreleak(void)
|
void ignoreleak(void)
|
||||||
|
|
Loading…
Reference in New Issue