From c0d7d7d1926b1ccfba983872d281de900c75a39a Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 14 Mar 2022 01:25:29 +0100 Subject: [PATCH] Ignore warnings in C parser They are only warnings, and we do not want invalid tokens. --- lib/PreProcessor.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/PreProcessor.php b/lib/PreProcessor.php index bcdf102..f08761f 100755 --- a/lib/PreProcessor.php +++ b/lib/PreProcessor.php @@ -105,6 +105,9 @@ public function process(string $header): array { case 'endif': // ignore break; + case 'warning': + // ignore + break; case 'error': var_dump($this->context); $this->debug($directive); @@ -398,4 +401,4 @@ public function nextArg(): void { $this->args[] = $this->currentArg->next; $this->currentArg = new Token(0, '', 'internal'); } -} \ No newline at end of file +}