Skip to content

Commit f3bbeb6

Browse files
liamappelbeCommit Queue
authored andcommitted
[vm] Fix compiler warnings in dart_api.h
Bug: dart-lang/native#2482 Change-Id: If55cda96d74c519b8b36b4112290914bc2020a67 TEST=CI Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/445860 Reviewed-by: Daco Harkes <[email protected]> Auto-Submit: Liam Appelbe <[email protected]> Commit-Queue: Liam Appelbe <[email protected]>
1 parent 7e75e84 commit f3bbeb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/include/dart_api.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ DART_EXPORT void Dart_SetCurrentThreadOwnsIsolate(void);
18031803
* The port can be the isolate's main port, or any other port owned by the
18041804
* isolate.
18051805
*
1806-
* \param port_id The port to be checked.
1806+
* \param port The port to be checked.
18071807
*/
18081808
DART_EXPORT bool Dart_GetCurrentThreadOwnsIsolate(Dart_Port port);
18091809

@@ -3363,7 +3363,7 @@ typedef void* (*Dart_NativeAssetsDlopenCallbackNoPath)(char** error);
33633363
*
33643364
* If provided, takes prescedence over `Dart_NativeAssetsDlopenCallback`.
33653365
*
3366-
* \param path The asset id requested in the `@Native` external function.
3366+
* \param asset_id The asset id requested in the `@Native` external function.
33673367
*
33683368
* \param error Returns NULL if successful, an error message otherwise. The
33693369
* caller is responsible for calling free() on the error message.
@@ -3381,7 +3381,7 @@ typedef void* (*Dart_NativeAssetsDlopenAssetId)(const char* asset_id,
33813381
* \return A malloced string containing all asset ids. The caller must free this
33823382
* string.
33833383
*/
3384-
typedef char* (*Dart_NativeAssetsAvailableAssets)();
3384+
typedef char* (*Dart_NativeAssetsAvailableAssets)(void);
33853385

33863386
/**
33873387
* Callback provided by the embedder that is used by the VM to lookup symbols

0 commit comments

Comments
 (0)