diff options
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -226,6 +226,16 @@ sc_error_shell_always_quotes: exit 1; } \ || : +# Usage of error() with an exit constant, should instead use die(), +# as that avoids warnings and may generate better code, due to being apparent +# to the compiler that it doesn't return. +sc_die_EXIT_FAILURE: + @cd $(srcdir)/src && GIT_PAGER= git grep -E \ + 'error \(.*_(FAILURE|INVALID)' \ + && { echo '$(ME): '"Use die() instead of error" 1>&2; \ + exit 1; } \ + || : + # Avoid unstyled quoting to internal slots and thus destined for diagnostics # as that can leak unescaped control characters to the output, when using # the default "literal" quoting style. |