[vm] Fix build for gcc 13.2.0.

TEST=local build
Change-Id: I32e400efb0f6d5e41b894f495ae2e77352f6f5fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332142
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Ryan Macnak 2023-10-25 08:38:28 +00:00 committed by Commit Queue
parent b791861f75
commit 379f8cac14
4 changed files with 7 additions and 1 deletions

View file

@ -238,7 +238,10 @@ config("dart_config") {
# pointers.
]
} else {
cflags += [ "-Wno-cast-function-type" ]
cflags += [
"-Wno-cast-function-type",
"-Wno-dangling-reference",
]
}
ldflags = []

View file

@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>

View file

@ -7,6 +7,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>

View file

@ -1340,6 +1340,7 @@ ${headerCommon(copyrightYear: copyrightYear)}
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>