Quiet ARI gettext checks
authorPedro Alves <palves@redhat.com>
Wed, 10 Aug 2016 15:06:57 +0000 (16:06 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 10 Aug 2016 15:06:57 +0000 (16:06 +0100)
The ARI complains about this new file:

 common/signals-state-save-restore.c:46: warning: gettext: All messages should be marked up with _.
 common/signals-state-save-restore.c:59: warning: gettext: All messages should be marked up with _.
 common/signals-state-save-restore.c:87: warning: gettext: All messages should be marked up with _.
 common/signals-state-save-restore.c:92: warning: gettext: All messages should be marked up with _.

Since these are untranslatable strings, use () instead of _().

gdb/ChangeLog:
2016-08-10  Pedro Alves  <palves@redhat.com>

* common/signals-state-save-restore.c
(save_original_signals_state, restore_original_signals_state):
Wrap perror_with_name arguments with '()'.

gdb/ChangeLog
gdb/common/signals-state-save-restore.c

index 17c799eefc7ed7ab9dc531a3d6a4ea92f032e550..a1865f96465bb00b5ef33088704b5995f347134b 100644 (file)
@@ -1,3 +1,9 @@
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       * common/signals-state-save-restore.c
+       (save_original_signals_state, restore_original_signals_state):
+       Wrap perror_with_name arguments with '()'.
+
 2016-08-09  Pedro Alves  <palves@redhat.com>
 
        PR gdb/20418
index 1c00cdd9d0da4f00b42939f65bce004fb0ba4ee6..5269062abb62bdaafda2b5154a0659fccfa038c5 100644 (file)
@@ -43,7 +43,7 @@ save_original_signals_state (void)
 
   res = sigprocmask (0,  NULL, &original_signal_mask);
   if (res == -1)
-    perror_with_name ("sigprocmask");
+    perror_with_name (("sigprocmask"));
 
   for (i = 1; i < NSIG; i++)
     {
@@ -56,7 +56,7 @@ save_original_signals_state (void)
          continue;
        }
       else if (res == -1)
-       perror_with_name ("sigaction");
+       perror_with_name (("sigaction"));
 
       /* If we find a custom signal handler already installed, then
         this function was called too late.  */
@@ -84,11 +84,11 @@ restore_original_signals_state (void)
          continue;
        }
       else if (res == -1)
-       perror_with_name ("sigaction");
+       perror_with_name (("sigaction"));
     }
 
   res = sigprocmask (SIG_SETMASK,  &original_signal_mask, NULL);
   if (res == -1)
-    perror_with_name ("sigprocmask");
+    perror_with_name (("sigprocmask"));
 #endif
 }