Skip to content

Commit

Permalink
patches/adb: Fix compiling with clang 15 or lower
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 authored and anatol committed Aug 10, 2023
1 parent 5b2d4eb commit 48f85eb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions patches/adb/0024-Add-explicit-constructor-for-fdevent_event.patch
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 {

0 comments on commit 48f85eb

Please sign in to comment.