aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf-index-cache.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-cache.c
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/dwarf-index-cache.c')
-rw-r--r--gdb/dwarf-index-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf-index-cache.c b/gdb/dwarf-index-cache.c
index 57118d6..966630b 100644
--- a/gdb/dwarf-index-cache.c
+++ b/gdb/dwarf-index-cache.c
@@ -359,7 +359,7 @@ create_dir_and_check (const char *dir)
struct stat st;
if (stat (dir, &st) != 0)
- perror_with_name ("stat");
+ perror_with_name (("stat"));
return (st.st_mode & S_IFDIR) != 0;
}
@@ -372,7 +372,7 @@ test_mkdir_recursive ()
char base[] = "/tmp/gdb-selftests-XXXXXX";
if (mkdtemp (base) == NULL)
- perror_with_name ("mkdtemp");
+ perror_with_name (("mkdtemp"));
/* Try not to leave leftover directories. */
struct cleanup_dirs {