diff options
author | Martin Liska <mliska@suse.cz> | 2019-07-01 10:08:29 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-07-01 08:08:29 +0000 |
commit | c53930bb4e409a256b9887640d7cd217d0e01b07 (patch) | |
tree | 8e0a0f4435a891ea1c645399d3a414cf45cc1278 /gcc/ggc-page.c | |
parent | 823d12a8370ec0298421fef4586c03a6b2eaf851 (diff) |
Fix 2 clang warnings.
2019-07-01 Martin Liska <mliska@suse.cz>
* edit-context.c (test_applying_fixits_unreadable_file): Do not
use () for a constructor call.
(test_applying_fixits_line_out_of_range): Likewise.
* ggc-page.c (alloc_page): Use (void *) for %p printf format
argument.
(free_page): Likewise.
From-SVN: r272846
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 7066ef2c488..a95ff466704 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -943,8 +943,8 @@ alloc_page (unsigned order) if (GGC_DEBUG_LEVEL >= 2) fprintf (G.debug_file, "Allocating page at %p, object size=%lu, data %p-%p\n", - (void *) entry, (unsigned long) OBJECT_SIZE (order), page, - page + entry_size - 1); + (void *) entry, (unsigned long) OBJECT_SIZE (order), + (void *) page, (void *) (page + entry_size - 1)); return entry; } @@ -977,7 +977,7 @@ free_page (page_entry *entry) if (GGC_DEBUG_LEVEL >= 2) fprintf (G.debug_file, "Deallocating page at %p, data %p-%p\n", (void *) entry, - entry->page, entry->page + entry->bytes - 1); + (void *) entry->page, (void *) (entry->page + entry->bytes - 1)); /* Mark the page as inaccessible. Discard the handle to avoid handle leak. */ |