The DTrace harness (dtest.pl) executes DTrace scripts with the -C flag,
which causes dtrace(1) to run the C preprocessor on input scripts before executing them. Suppress some warnings emitted by the preprocessor which are confusing the DTrace lexer tests. MFC after: 1 week
This commit is contained in:
parent
6e9584fd15
commit
c0d678c9dd
@ -36,8 +36,10 @@
|
|||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
{
|
{
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||||
h = '
|
h = '
|
||||||
';
|
';
|
||||||
|
#pragma clang diagnostic pop
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,9 @@
|
|||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
{
|
{
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||||
h = '';
|
h = '';
|
||||||
exit(0);
|
exit(0);
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,11 @@
|
|||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
{
|
{
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Winvalid-pp-token"
|
||||||
h = "hello
|
h = "hello
|
||||||
|
|
||||||
there";
|
there";
|
||||||
exit(0);
|
exit(0);
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user