diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-22 10:19:54 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-22 10:19:54 +0200 |
commit | 3d0122be52faa6009f43f151a1ca24cf30ef12cc (patch) | |
tree | 3938793616ff53bfc66b5719a46c688d7f656cf5 /plugins/omruleset/omruleset.c | |
parent | be7bd9b4717a50db47e19edd4cd6ff897ff0a2ec (diff) | |
download | rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.tar.gz rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.tar.bz2 rsyslog-3d0122be52faa6009f43f151a1ca24cf30ef12cc.zip |
disable deprecated warnings in omdiscard/omruleset
... because action-like statements in action lists are not supported
in 7.1. This will be available in 7.3, but it is too late to do this in
7.1. So we disable the warnings and re-enable them in 7.3. Functionality-
wise, this is no problem at all as the legacy constructs are still
fully supported.
Thanks to forum user "canadaboy" for mentioning this problem.
Diffstat (limited to 'plugins/omruleset/omruleset.c')
-rw-r--r-- | plugins/omruleset/omruleset.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/omruleset/omruleset.c b/plugins/omruleset/omruleset.c index 6c770c94..d1d6eb00 100644 --- a/plugins/omruleset/omruleset.c +++ b/plugins/omruleset/omruleset.c @@ -165,8 +165,12 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1) p += sizeof(":omruleset:") - 1; /* eat indicator sequence (-1 because of '\0'!) */ CHKiRet(createInstance(&pData)); + /* re-enable in v7.3: requires action list to support + * action-like statements, something that is too late to + * do in 7.1. errmsg.LogError(0, RS_RET_DEPRECATED, "warning: omruleset is deprecated, consider " "using the 'call' statement instead"); + */ /* check if a non-standard template is to be applied */ if(*(p-1) == ';') |