aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf-index-write.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-08-09 13:17:21 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-08-09 13:17:56 -0400
commit83c8d318d1aefecf3cc43015226c10bf4126df87 (patch)
tree0b0414582fbacd54d6cb229cbd71183c96f9fc14 /gdb/dwarf-index-write.c
parent3a53fb12c870d67537c883b9abd80d6a4ba408ff (diff)
downloadgdb-83c8d318d1aefecf3cc43015226c10bf4126df87.zip
gdb-83c8d318d1aefecf3cc43015226c10bf4126df87.tar.gz
gdb-83c8d318d1aefecf3cc43015226c10bf4126df87.tar.bz2
Fix some gettext ARI warnings
ARI produces this warning for the lines touched in this patch: warning: gettext: All messages should be marked up with _. However, in these cases, the message is not translatable (they are syscall names). Adding an extra set of parentheses silences the warning. gdb/ChangeLog: * common/scoped_mmap.c (mmap_file): Silence ARI warning. * dwarf-index-cache.c (create_dir_and_check): Likewise. (test_mkdir_recursive): Likewise. * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
Diffstat (limited to 'gdb/dwarf-index-write.c')
-rw-r--r--gdb/dwarf-index-write.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index 100619d..2520321 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -1577,7 +1577,7 @@ write_psymtabs_to_index (struct dwarf2_per_objfile *dwarf2_per_objfile,
gdb::optional<scoped_fd> out_file_fd
(gdb::in_place, mkstemp (filename_temp.data ()));
if (out_file_fd->get () == -1)
- perror_with_name ("mkstemp");
+ perror_with_name (("mkstemp"));
FILE *out_file = gdb_fopen_cloexec (filename_temp.data (), "wb").release ();
if (out_file == nullptr)
@@ -1601,7 +1601,7 @@ write_psymtabs_to_index (struct dwarf2_per_objfile *dwarf2_per_objfile,
gdb::optional<scoped_fd> out_file_str_fd
(gdb::in_place, mkstemp (filename_str_temp.data ()));
if (out_file_str_fd->get () == -1)
- perror_with_name ("mkstemp");
+ perror_with_name (("mkstemp"));
FILE *out_file_str
= gdb_fopen_cloexec (filename_str_temp.data (), "wb").release ();
@@ -1622,7 +1622,7 @@ write_psymtabs_to_index (struct dwarf2_per_objfile *dwarf2_per_objfile,
/* Close and move the str file in place. */
close_out_file_str.reset ();
if (rename (filename_str_temp.data (), filename_str.c_str ()) != 0)
- perror_with_name ("rename");
+ perror_with_name (("rename"));
}
else
{
@@ -1637,7 +1637,7 @@ write_psymtabs_to_index (struct dwarf2_per_objfile *dwarf2_per_objfile,
/* Close and move the file in place. */
close_out_file.reset ();
if (rename (filename_temp.data (), filename.c_str ()) != 0)
- perror_with_name ("rename");
+ perror_with_name (("rename"));
}
/* Implementation of the `save gdb-index' command.