summaryrefslogtreecommitdiff
path: root/odrefresh/odr_fs_utils.cc
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2023-05-16 10:32:54 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2023-05-22 10:36:39 +0000
commit78f3c72e8948087352788997a70854dee613352c (patch)
tree306db3c15bc4b7af149bcf3e07be533e50679b88 /odrefresh/odr_fs_utils.cc
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'odrefresh/odr_fs_utils.cc')
-rw-r--r--odrefresh/odr_fs_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/odrefresh/odr_fs_utils.cc b/odrefresh/odr_fs_utils.cc
index 3ed8021037..2a77e52a6d 100644
--- a/odrefresh/odr_fs_utils.cc
+++ b/odrefresh/odr_fs_utils.cc
@@ -43,7 +43,7 @@ namespace odrefresh {
// Callback for use with nftw(3) to assist with clearing files and sub-directories.
// This method removes files and directories below the top-level directory passed to nftw().
static int NftwCleanUpCallback(const char* fpath,
- const struct stat* sb ATTRIBUTE_UNUSED,
+ [[maybe_unused]] const struct stat* sb,
int typeflag,
struct FTW* ftwbuf) {
switch (typeflag) {