forked from lda/telodendria
Don't spew unknown expression warnings if @suppress-warnings is set.
This commit is contained in:
parent
0b1b4a8b29
commit
f819093b7d
2 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,8 @@
|
||||||
* specification for documentation on Matrix routes and the
|
* specification for documentation on Matrix routes and the
|
||||||
* .Xr telodendria-admin
|
* .Xr telodendria-admin
|
||||||
* page for admin API routes.
|
* page for admin API routes.
|
||||||
|
*
|
||||||
|
* @suppress-warnings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <HashMap.h>
|
#include <HashMap.h>
|
||||||
|
|
|
@ -316,6 +316,10 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HP_UNKNOWN:
|
case HP_UNKNOWN:
|
||||||
|
if (HashMapGet(registers, "suppress-warnings"))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
StreamPrintf(StreamStderr(), "Warning: Unknown expression: %s\n",
|
StreamPrintf(StreamStderr(), "Warning: Unknown expression: %s\n",
|
||||||
expr.data.text);
|
expr.data.text);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue