aboutsummaryrefslogtreecommitdiffstats
path: root/asterisk.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-19 01:57:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-19 01:57:19 +0000
commit3af272b36b0c883bdd6b297f6fd1fe160a9e6fbb (patch)
treeb006587477d09e5bc5e13f401a06e2e7c0e82dad /asterisk.c
parent160bd00f28f1a866ce0d62fad10d9115fc070c1d (diff)
add 'dontwarn' option to asterisk.conf to appease the whining masses :p (bug #4320)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5723 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-xasterisk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c
index 308519ba2..afdcf7ec6 100755
--- a/asterisk.c
+++ b/asterisk.c
@@ -88,6 +88,7 @@ int option_overrideconfig = 0;
int option_reconnect = 0;
int option_transcode_slin = 1;
int option_maxcalls = 0;
+int option_dontwarn = 0;
int fully_booted = 0;
char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR;
char debug_filename[AST_FILENAME_MAX] = "";
@@ -1647,6 +1648,9 @@ static void ast_readconfig(void) {
/* Disable ANSI colors for console (-c at startup) */
} else if (!strcasecmp(v->name, "nocolor")) {
option_nocolor = ast_true(v->value);
+ /* Disable some usage warnings for picky people :p */
+ } else if (!strcasecmp(v->name, "dontwarn")) {
+ option_dontwarn = ast_true(v->value);
/* Dump core in case of crash (-g) */
} else if (!strcasecmp(v->name, "dumpcore")) {
option_dumpcore = ast_true(v->value);