From e540ddb202a30235feaded26f811fa93eb22cf0b Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 23 Apr 2003 14:17:34 +0000 Subject: [PATCH] Get rid of annoying 'unused source' warning for stage targets. * new/stage.jam (stage-target-class.check-for-unused-sources): Override base method with an empty one, since the inherited logic does not make any sense for stage. [SVN r18295] --- new/stage.jam | 6 ++++++ v2/tools/stage.jam | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/new/stage.jam b/new/stage.jam index fd365f37a..885e13b53 100644 --- a/new/stage.jam +++ b/new/stage.jam @@ -75,6 +75,12 @@ rule stage-target-class ( name-and-dir : project : sources * : requirements * : } return $(result) ; } + + # Don't do nothing. + rule check-for-unused-sources ( result * : sources * ) + { + } + } class stage-target-class : basic-target ; diff --git a/v2/tools/stage.jam b/v2/tools/stage.jam index fd365f37a..885e13b53 100644 --- a/v2/tools/stage.jam +++ b/v2/tools/stage.jam @@ -75,6 +75,12 @@ rule stage-target-class ( name-and-dir : project : sources * : requirements * : } return $(result) ; } + + # Don't do nothing. + rule check-for-unused-sources ( result * : sources * ) + { + } + } class stage-target-class : basic-target ;