Skip to content

Commit 21517c0

Browse files
committed
Merge pull request halide#179 from jansel/master
Print warnings to stderr instead of stdout
2 parents 8600c7e + 759727e commit 21517c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Func.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int Func::add_implicit_vars(vector<Var> &args) const {
286286
// the provided arguments.
287287
placeholder_pos = args.size();
288288
if ((int)args.size() < dimensions()) {
289-
std::cout << "Implicit arguments without placeholders are deprecated. Adding " <<
289+
std::cerr << "Implicit arguments without placeholders are deprecated. Adding " <<
290290
dimensions() - args.size() << " arguments to Func " << name() << std::endl;
291291

292292
int i = 0;
@@ -328,7 +328,7 @@ int Func::add_implicit_vars(vector<Expr> &args) const {
328328
// the provided arguments.
329329
placeholder_pos = args.size();
330330
if ((int)args.size() < dimensions()) {
331-
std::cout << "Implicit arguments without placeholders are deprecated. Adding " <<
331+
std::cerr << "Implicit arguments without placeholders are deprecated. Adding " <<
332332
dimensions() - args.size() << " arguments to Func " << name() << std::endl;
333333

334334
int i = 0;

0 commit comments

Comments
 (0)