+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.
+
2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
* gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
test_applying_fixits_unreadable_file ()
{
const char *filename = "this-does-not-exist.txt";
- line_table_test ltt ();
+ line_table_test ltt;
linemap_add (line_table, LC_ENTER, false, filename, 1);
location_t loc = linemap_position_for_column (line_table, 1);
const char *old_content = "One-liner file\n";
temp_source_file tmp (SELFTEST_LOCATION, ".txt", old_content);
const char *filename = tmp.get_filename ();
- line_table_test ltt ();
+ line_table_test ltt;
linemap_add (line_table, LC_ENTER, false, filename, 2);
/* Try to insert a string in line 2. */
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;
}
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. */