]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: fix sc_error_message_uppercase false failure
authorPádraig Brady <P@draigBrady.com>
Fri, 28 Jan 2022 14:54:00 +0000 (14:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 28 Jan 2022 15:03:19 +0000 (15:03 +0000)
* top/maint.mk (sc_error_message_uppercase): Don't trigger for
any of the PRI... defines.  Note we add an extra constraint
here that PRI always follows a double quote, but that's
almost always the case, or can be easily made so by prepending
"" for example.

ChangeLog
top/maint.mk

index 1c036a56975033068b4a5f987fc5f4c0abbb17a0..d59716db06faa8e6e8ef3b8d1d9ef018b1a7918c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-28  Pádraig Brady  <P@draigBrady.com>
+
+       maintainer-makefile: fix sc_error_message_uppercase false failure
+       * top/maint.mk (sc_error_message_uppercase): Don't trigger for
+       any of the PRI... defines.
+
 2022-01-27  Paul Eggert  <eggert@cs.ucla.edu>
 
        alignalloc: work around AddressSanitizer bug
index 344acb2af6462f9779c820c0e3e5ad565d81d0b2..92cef425cf350409214c6ed62c8fa1030a71e110 100644 (file)
@@ -473,7 +473,7 @@ sc_error_message_uppercase:
        @$(VC_LIST_EXCEPT)                                              \
          | xargs $(GREP) -nEA2 '[^rp]error *\(' /dev/null              \
          | $(GREP) -E '"[A-Z]'                                         \
-         | $(GREP) -vE '"FATAL|"WARNING|"Java|"C#|PRIuMAX'             \
+         | $(GREP) -vE '"FATAL|"WARNING|"Java|"C#|"PRI'                \
          && { echo '$(ME): found capitalized error message' 1>&2;      \
               exit 1; }                                                \
          || :