fix longjmp error when timing null command in posix mode; unset exit trap in subshells before checking for pending fatal signal; changes for gcc sometimes-uninitialized warning

This commit is contained in:
Chet Ramey
2025-12-02 17:15:44 -05:00
parent 4e705ed53a
commit 5a104e96d8
10 changed files with 57 additions and 21 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ extern char *get_name_for_error (void);
extern void file_error (const char *);
/* Report a programmer's error, and abort. Pass REASON, and ARG1 ... ARG5. */
extern void programming_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
extern void programming_error (const char *, ...) __attribute__((__format__ (printf, 1, 2))) __attribute__((__noreturn__));;
/* General error reporting. Pass FORMAT and ARG1 ... ARG5. */
extern void report_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));