diff options
author | benl <benl@FreeBSD.org> | 2011-05-18 21:00:27 +0000 |
---|---|---|
committer | benl <benl@FreeBSD.org> | 2011-05-18 21:00:27 +0000 |
commit | cd538f65b0333c57b6e33e5bbae8f94517ac08cc (patch) | |
tree | 249afe2b0674c3257c9839d5cd0095c4176fc1bc /contrib/gcc | |
parent | 437ee496916c34edb27f6aabe9e4d4f61471cd03 (diff) | |
download | FreeBSD-src-cd538f65b0333c57b6e33e5bbae8f94517ac08cc.zip FreeBSD-src-cd538f65b0333c57b6e33e5bbae8f94517ac08cc.tar.gz |
Fix clang warnings.
Approved by: philip (mentor)
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/genmodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc/genmodes.c b/contrib/gcc/genmodes.c index 0a70dea..5a91a50 100644 --- a/contrib/gcc/genmodes.c +++ b/contrib/gcc/genmodes.c @@ -787,7 +787,7 @@ calc_wider_mode (void) #define tagged_printf(FMT, ARG, TAG) do { \ int count_; \ - printf (" " FMT ",%n", ARG, &count_); \ + count_ = printf (" " FMT ",", ARG); \ printf ("%*s/* %s */\n", 27 - count_, "", TAG); \ } while (0) @@ -822,7 +822,7 @@ enum machine_mode\n{"); for (m = modes[c]; m; m = m->next) { int count_; - printf (" %smode,%n", m->name, &count_); + count_ = printf (" %smode,", m->name); printf ("%*s/* %s:%d */\n", 27 - count_, "", trim_filename (m->file), m->line); } |