help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is error suppression possible for ignored errors?


From: Steve Connell
Subject: Re: Is error suppression possible for ignored errors?
Date: Fri, 16 Apr 2004 15:35:15 -0700

Thanks for your help Paul - this solution worked for me.

Steve

----- Original Message ----- 
From: "Paul D. Smith" <address@hidden>
To: "Steve Connell" <address@hidden>
Cc: <address@hidden>
Sent: Friday, April 16, 2004 3:29 PM
Subject: Re: Is error suppression possible for ignored errors?


> %% "Steve Connell" <address@hidden> writes:
>
>   sc> %.obj : ../%.c
>   sc>         -@ chmod -f +w $@
>
>   sc> Adding the "-" before the @ allowed gmake to continue, however now I
am
>   sc> getting an error message from gmake:
>
>   sc> gmake[1]: [hostio.obj] Error 1 (ignored)
>
>   sc> Is there a way to prevent this ignored error message from printing
out?
>
> Just run a different command that succeeds:
>
>  %.obj : ../%.c
>          @ chmod -f +w $@ || true
>
> -- 
> --------------------------------------------------------------------------
-----
>  Paul D. Smith <address@hidden>          Find some GNU make tips at:
>  http://www.gnu.org                      http://make.paulandlesley.org
>  "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist





reply via email to

[Prev in Thread] Current Thread [Next in Thread]