diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-19 16:53:56 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-19 16:53:56 +0000 |
commit | 9befdd39dd37d5dfd0fa29fa64161f0525dcd717 (patch) | |
tree | e7126b30a5693c518c7c92a81a3a168880f0b19b /tests/tsprintf.c | |
parent | d2aa433642d8c01e1c7fa49b3148dcc054a178f5 (diff) | |
download | mpfr-9befdd39dd37d5dfd0fa29fa64161f0525dcd717.tar.gz |
tests/tprintf.c, tests/tsprintf.c:
* %c takes an int argument, not a char (see C standard), even though
this may be equivalent due to integer promotion.
* Add void in prototypes of functions taking no arguments.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5851 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsprintf.c')
-rw-r--r-- | tests/tsprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tsprintf.c b/tests/tsprintf.c index 99d03985d..b70246eb5 100644 --- a/tests/tsprintf.c +++ b/tests/tsprintf.c @@ -141,9 +141,9 @@ check_vsprintf (const char *expected, const char *fmt, ...) static void -native_types () +native_types (void) { - char c = 'a'; + int c = 'a'; int i = -1; unsigned int ui = 1; double d = -1.25; @@ -746,7 +746,7 @@ random_double (void) } static void -bug20080610 () +bug20080610 (void) { /* bug on icc found on June 10, 2008 */ /* this is not a bug but a different implementation choice: ISO C99 doesn't @@ -782,7 +782,7 @@ bug20080610 () } static void -bug20081214 () +bug20081214 (void) { /* problem with glibc 2.3.6, December 14, 2008: the system asprintf outputs "-1.0" instead of "-1.". */ |