aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
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/common
parent3a53fb12c870d67537c883b9abd80d6a4ba408ff (diff)
downloadbinutils-83c8d318d1aefecf3cc43015226c10bf4126df87.zip
binutils-83c8d318d1aefecf3cc43015226c10bf4126df87.tar.gz
binutils-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/common')
-rw-r--r--gdb/common/scoped_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/common/scoped_mmap.c b/gdb/common/scoped_mmap.c
index aa2f703..7eb7293 100644
--- a/gdb/common/scoped_mmap.c
+++ b/gdb/common/scoped_mmap.c
@@ -28,11 +28,11 @@ mmap_file (const char *filename)
{
scoped_fd fd (open (filename, O_RDONLY));
if (fd.get () < 0)
- perror_with_name ("open");
+ perror_with_name (("open"));
off_t size = lseek (fd.get (), 0, SEEK_END);
if (size < 0)
- perror_with_name ("lseek");
+ perror_with_name (("lseek"));
/* We can't map an empty file. */
if (size == 0)
@@ -40,7 +40,7 @@ mmap_file (const char *filename)
scoped_mmap mmapped_file (nullptr, size, PROT_READ, MAP_PRIVATE, fd.get (), 0);
if (mmapped_file.get () == MAP_FAILED)
- perror_with_name ("mmap");
+ perror_with_name (("mmap"));
return mmapped_file;
}