Don't warn about generating reST script documentation for stdin

This commit is contained in:
Jon Siwek 2011-04-06 12:08:23 -05:00
parent 5183ab409b
commit 7593d4d368

View file

@ -17,7 +17,7 @@ BroDoc::BroDoc(const std::string& sourcename)
std::string ext = source_filename.substr(ext_pos + 1);
if ( ext_pos == std::string::npos || ext != "bro" )
{
if ( source_filename != "bro.init" )
if ( source_filename != "bro.init" && source_filename != "<stdin>" )
{
fprintf(stderr,
"Warning: documenting file without .bro extension: %s\n",