diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-20 17:36:15 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-20 17:36:15 +0000 |
commit | 166b4e81a1a7f2df4f8f7c3fad2269e53290f01e (patch) | |
tree | d094eb673873c0d25db471c45eb2369dad1ab79c /fixincludes/tests | |
parent | 312c31e30fcb7ed9f5eab5af48546c942d538a76 (diff) | |
download | gcc-166b4e81a1a7f2df4f8f7c3fad2269e53290f01e.tar.gz |
fixincludes:
PR c++/46024
* inclhack.def (solaris_sys_va_list): New fix.
* fixincl.x: Regenerate.
* tests/base/sys/va_list.h: New test.
gcc/testsuite:
PR c++/46024
* g++.dg/warn/miss-format-1.C: Enclose dg-error target list in braces.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/sys/va_list.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fixincludes/tests/base/sys/va_list.h b/fixincludes/tests/base/sys/va_list.h new file mode 100644 index 00000000000..8c69e2d574b --- /dev/null +++ b/fixincludes/tests/base/sys/va_list.h @@ -0,0 +1,22 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/sys/va_list.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( SOLARIS_SYS_VA_LIST_CHECK ) +#ifdef __GNUC__ +typedef __builtin_va_list __va_list; +#else +#if defined(__STDC__) && !defined(__ia64) +typedef void *__va_list; +#else +typedef char *__va_list; +#endif +#endif +#endif /* SOLARIS_SYS_VA_LIST_CHECK */ |