aboutsummaryrefslogtreecommitdiff
path: root/src/xz/main.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-05-22 14:43:00 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-05-22 14:43:00 +0300
commitb60376249e0c586910c4121fab4f791820cc1289 (patch)
treea05903c27ddb37000c1eafe453189acf13eb4153 /src/xz/main.h
parentFix a comment. (diff)
downloadxz-b60376249e0c586910c4121fab4f791820cc1289.tar.xz
Add --no-warn.
Diffstat (limited to 'src/xz/main.h')
-rw-r--r--src/xz/main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xz/main.h b/src/xz/main.h
index 2e35a438..8fd92393 100644
--- a/src/xz/main.h
+++ b/src/xz/main.h
@@ -24,6 +24,12 @@ enum exit_status_type {
extern void set_exit_status(enum exit_status_type new_status);
+/// Use E_SUCCESS instead of E_WARNING if something worth a warning occurs
+/// but nothing worth an error has occurred. This is called when --no-warn
+/// is specified.
+extern void set_exit_no_warn(void);
+
+
/// Exits the program using the given status. This takes care of closing
/// stdin, stdout, and stderr and catches possible errors. If we had got
/// a signal, this function will raise it so that to the parent process it