Skip to content

Commit

Permalink
patches/adb: Fix compilation on GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
csfore authored and anatol committed Nov 22, 2023
1 parent ee0e62f commit 289759d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions patches/adb/0025-Add-explicit-import-for-algorithm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 959eb4a096fc51bf2814e3374cb12b41d32a045d Mon Sep 17 00:00:00 2001
From: Christopher Fore <[email protected]>
Date: Mon, 20 Nov 2023 14:13:24 -0500
Subject: [PATCH] adb: IWYU, include <algorithm> for std::remove_if

GCC 14 starts to no longer include <algorithm> by default, resulting in
it needing to be explicitly declared.

Test: Recompiled with GCC 14 and succeeded

Change-Id: I1ff332284aa3b5dd38f882f9519269c9d370798c
Signed-off-by: Christopher Fore <[email protected]>
---

diff --git a/client/incremental_utils.cpp b/client/incremental_utils.cpp
index 2f6958b..67f21a1 100644
--- a/client/incremental_utils.cpp
+++ b/client/incremental_utils.cpp
@@ -24,6 +24,7 @@
#include <ziparchive/zip_archive.h>
#include <ziparchive/zip_writer.h>

+#include <algorithm>
#include <array>
#include <cinttypes>
#include <numeric>

0 comments on commit 289759d

Please sign in to comment.