summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-15 17:57:20 +0200
committerMax Kellermann <max@musicpd.org>2019-08-15 17:57:20 +0200
commitf909615b14379da2c281d8c3727ca302793a59b5 (patch)
treeb094fb4684f859172cf71a87d4bb3b18c8910965 /src
parent92c89f0c86b27d2e48f753a68d63ef3c1aad6105 (diff)
include cleanups (powered by iwyu)
Diffstat (limited to 'src')
-rw-r--r--src/fs/Charset.cxx1
-rw-r--r--src/input/plugins/TidalErrorParser.cxx1
-rw-r--r--src/lib/curl/Delegate.cxx2
-rw-r--r--src/lib/dbus/Message.cxx4
-rw-r--r--src/lib/dbus/Message.hxx3
-rw-r--r--src/lib/ffmpeg/LogError.cxx2
-rw-r--r--src/lib/icu/CaseFold.cxx1
-rw-r--r--src/lib/icu/Converter.cxx1
-rw-r--r--src/lib/icu/Util.cxx1
-rw-r--r--src/playlist/plugins/FlacPlaylistPlugin.cxx1
-rw-r--r--src/util/HugeAllocator.hxx3
-rw-r--r--src/util/WStringCompare.cxx4
12 files changed, 10 insertions, 14 deletions
diff --git a/src/fs/Charset.cxx b/src/fs/Charset.cxx
index d38c37468..941021fa7 100644
--- a/src/fs/Charset.cxx
+++ b/src/fs/Charset.cxx
@@ -33,7 +33,6 @@
#include <algorithm>
#include <assert.h>
-#include <string.h>
#ifdef HAVE_FS_CHARSET
diff --git a/src/input/plugins/TidalErrorParser.cxx b/src/input/plugins/TidalErrorParser.cxx
index 61d997499..f1832c398 100644
--- a/src/input/plugins/TidalErrorParser.cxx
+++ b/src/input/plugins/TidalErrorParser.cxx
@@ -20,7 +20,6 @@
#include "TidalErrorParser.hxx"
#include "TidalError.hxx"
#include "lib/yajl/Callbacks.hxx"
-#include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<TidalErrorParser>;
diff --git a/src/lib/curl/Delegate.cxx b/src/lib/curl/Delegate.cxx
index a2511d2d5..2ebb9cd7a 100644
--- a/src/lib/curl/Delegate.cxx
+++ b/src/lib/curl/Delegate.cxx
@@ -30,6 +30,8 @@
#include "Delegate.hxx"
#include "Parser.hxx"
+#include <utility>
+
#include <assert.h>
void
diff --git a/src/lib/dbus/Message.cxx b/src/lib/dbus/Message.cxx
index 5206af9f3..b391b0c35 100644
--- a/src/lib/dbus/Message.cxx
+++ b/src/lib/dbus/Message.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2017 Content Management AG
+ * Copyright 2007-2019 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
@@ -33,6 +33,8 @@
#include "Message.hxx"
#include "ReadIter.hxx"
+#include <stdexcept>
+
ODBus::Message
ODBus::Message::NewMethodCall(const char *destination,
const char *path,
diff --git a/src/lib/dbus/Message.hxx b/src/lib/dbus/Message.hxx
index 545abf2a1..5e7dc7f06 100644
--- a/src/lib/dbus/Message.hxx
+++ b/src/lib/dbus/Message.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2017 Content Management AG
+ * Copyright 2007-2019 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
@@ -35,7 +35,6 @@
#include <dbus/dbus.h>
-#include <stdexcept>
#include <utility>
namespace ODBus {
diff --git a/src/lib/ffmpeg/LogError.cxx b/src/lib/ffmpeg/LogError.cxx
index c114c1fa1..0b9d255af 100644
--- a/src/lib/ffmpeg/LogError.cxx
+++ b/src/lib/ffmpeg/LogError.cxx
@@ -21,8 +21,6 @@
#include "Domain.hxx"
#include "Log.hxx"
-#include <cstdint> /* needed due to libavutil bug */
-
extern "C" {
#include <libavutil/error.h>
}
diff --git a/src/lib/icu/CaseFold.cxx b/src/lib/icu/CaseFold.cxx
index 2aa3720e4..669047269 100644
--- a/src/lib/icu/CaseFold.cxx
+++ b/src/lib/icu/CaseFold.cxx
@@ -27,7 +27,6 @@
#ifdef HAVE_ICU
#include "Util.hxx"
#include "util/AllocatedArray.hxx"
-#include "util/ConstBuffer.hxx"
#include <unicode/ucol.h>
#include <unicode/ustring.h>
diff --git a/src/lib/icu/Converter.cxx b/src/lib/icu/Converter.cxx
index 3e464a3af..7c46c726c 100644
--- a/src/lib/icu/Converter.cxx
+++ b/src/lib/icu/Converter.cxx
@@ -20,7 +20,6 @@
#include "Converter.hxx"
#include "util/AllocatedString.hxx"
#include "util/AllocatedArray.hxx"
-#include "util/ConstBuffer.hxx"
#include "util/FormatString.hxx"
#include "config.h"
diff --git a/src/lib/icu/Util.cxx b/src/lib/icu/Util.cxx
index 5fc12534a..7ce3a7857 100644
--- a/src/lib/icu/Util.cxx
+++ b/src/lib/icu/Util.cxx
@@ -20,7 +20,6 @@
#include "Util.hxx"
#include "util/AllocatedString.hxx"
#include "util/AllocatedArray.hxx"
-#include "util/WritableBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <unicode/ustring.h>
diff --git a/src/playlist/plugins/FlacPlaylistPlugin.cxx b/src/playlist/plugins/FlacPlaylistPlugin.cxx
index 30793aeac..fd2cd4983 100644
--- a/src/playlist/plugins/FlacPlaylistPlugin.cxx
+++ b/src/playlist/plugins/FlacPlaylistPlugin.cxx
@@ -31,7 +31,6 @@
#include "song/DetachedSong.hxx"
#include "input/InputStream.hxx"
#include "util/RuntimeError.hxx"
-#include "util/ScopeExit.hxx"
#include <FLAC/metadata.h>
diff --git a/src/util/HugeAllocator.hxx b/src/util/HugeAllocator.hxx
index 6ae68f78e..93c06d5f9 100644
--- a/src/util/HugeAllocator.hxx
+++ b/src/util/HugeAllocator.hxx
@@ -31,7 +31,6 @@
#define HUGE_ALLOCATOR_HXX
#include "WritableBuffer.hxx"
-#include "Compiler.h"
#include <utility>
@@ -85,7 +84,7 @@ WritableBuffer<void>
HugeAllocate(size_t size);
static inline void
-HugeFree(void *p, gcc_unused size_t size) noexcept
+HugeFree(void *p, size_t) noexcept
{
VirtualFree(p, 0, MEM_RELEASE);
}
diff --git a/src/util/WStringCompare.cxx b/src/util/WStringCompare.cxx
index b255f8e64..ea67f3d2d 100644
--- a/src/util/WStringCompare.cxx
+++ b/src/util/WStringCompare.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2018 Max Kellermann <max.kellermann@gmail.com>
+ * Copyright 2013-2019 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -29,6 +29,8 @@
#include "WStringCompare.hxx"
+#include <string.h>
+
bool
StringEndsWith(const wchar_t *haystack, const wchar_t *needle) noexcept
{