My bad, updated patch attached. Note that this does not include the
changes necessary for the Base self-tests to pass, those will be in the
commit to the Git repo.
- Andrew
On 08/10/2018 11:43 AM, Andrew Johnson wrote:
> Hi Han,
>
> The change to macLib I discussed is attached should you wish to apply it
> to your copy of Base; I am committing this to the Base-3.15 branch so it
> will appear in the next release.
>
> - Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
diff --git a/src/libCom/macLib/macCore.c b/src/libCom/macLib/macCore.c
index 55d3171..6f84d6b 100644
--- a/src/libCom/macLib/macCore.c
+++ b/src/libCom/macLib/macCore.c
@@ -902,11 +902,16 @@ static void refer ( MAC_HANDLE *handle, MAC_ENTRY *entry, int level,
}
}
- /* Bad reference, insert $(name,errval) */
+ /* Bad reference, insert either $(name,<error>) or $(name) */
if ( v < valend ) *v++ = '$';
if ( v < valend ) *v++ = '(';
cpy2val( refname, &v, valend );
- cpy2val( errval, &v, valend );
+ if (handle->flags & FLAG_SUPPRESS_WARNINGS) {
+ if ( v < valend ) *v++ = ')';
+ *v = '\0';
+ }
+ else
+ cpy2val( errval, &v, valend );
cleanup:
if (pop) {
- Replies:
- Re: a question for msi Jeong Han Lee
- References:
- a question for msi Jeong Han Lee
- Re: a question for msi Andrew Johnson
- Re: a question for msi Bruce Hill
- Re: a question for msi Jeong Han Lee
- Re: a question for msi Andrew Johnson
- Navigate by Date:
- Prev:
Re: a question for msi Andrew Johnson
- Next:
RE: Parse a variable-length, multi-column waveform in stream device Abdalla Ahmad
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: a question for msi Andrew Johnson
- Next:
Re: a question for msi Jeong Han Lee
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|