From 547b119f25dea97ff06cf754f2720e11b50f079f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Aug 2006 15:40:49 +0000 Subject: * Support singleton values and nested lists again in `args', but print a warning. --- src/libmain/shared.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/libmain/shared.cc') diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 2441cbf01..71be0dd5d 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -44,13 +44,10 @@ Path makeRootName(const Path & gcRoot, int & counter) void printGCWarning() { - static bool warned = false; - if (!warned) { - printMsg(lvlInfo, - "warning: you did not specify `--add-root'; " - "the result might be removed by the garbage collector"); - warned = true; - } + static bool haveWarned = false; + warnOnce(haveWarned, + "warning: you did not specify `--add-root'; " + "the result might be removed by the garbage collector"); } -- cgit v1.2.3