aboutsummaryrefslogtreecommitdiff
path: root/gcc/edit-context.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-07-01 10:08:29 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-07-01 08:08:29 +0000
commitc53930bb4e409a256b9887640d7cd217d0e01b07 (patch)
tree8e0a0f4435a891ea1c645399d3a414cf45cc1278 /gcc/edit-context.c
parent823d12a8370ec0298421fef4586c03a6b2eaf851 (diff)
downloadgcc-c53930bb4e409a256b9887640d7cd217d0e01b07.zip
gcc-c53930bb4e409a256b9887640d7cd217d0e01b07.tar.gz
gcc-c53930bb4e409a256b9887640d7cd217d0e01b07.tar.bz2
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/edit-context.c')
-rw-r--r--gcc/edit-context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/edit-context.c b/gcc/edit-context.c
index d3246ab..93d1066 100644
--- a/gcc/edit-context.c
+++ b/gcc/edit-context.c
@@ -1639,7 +1639,7 @@ static void
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);
@@ -1670,7 +1670,7 @@ test_applying_fixits_line_out_of_range ()
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. */