-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches/adb: Fix compiling with clang 15 or lower
This imports the patch from https://android-review.googlesource.com/c/platform/packages/modules/adb/+/2703715
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
patches/adb/0024-Add-explicit-constructor-for-fdevent_event.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From c7bb7813905b5f879dc4c30cac1ee2a64852b8da Mon Sep 17 00:00:00 2001 | ||
From: Matt Lee <[email protected]> | ||
Date: Tue, 16 May 2023 21:02:04 +0000 | ||
Subject: [PATCH] Add explicit constructor for fdevent_event. | ||
|
||
Solution taken from comments on ag/23122419. | ||
|
||
Bug: 282860645 | ||
Test: builds | ||
Change-Id: I2a15d3f492d35cfe09f6173aac1f433f510f0f2e | ||
--- | ||
|
||
diff --git a/fdevent/fdevent.h b/fdevent/fdevent.h | ||
index 7f8e1a2..770e192 100644 | ||
--- a/fdevent/fdevent.h | ||
+++ b/fdevent/fdevent.h | ||
@@ -51,6 +51,7 @@ | ||
struct fdevent_event { | ||
fdevent* fde; | ||
unsigned events; | ||
+ fdevent_event(fdevent* pfde, unsigned ev) : fde(pfde), events(ev) {} | ||
}; | ||
|
||
struct fdevent final { |