Fix warnings under clang-cl (#1106)

-Wmicrosoft-unqualified-friend
-Wdllexport-explicit-instantiation-decl
-Wunused-parameter

Signed-off-by: Rosen Penev <[email protected]>
This commit is contained in:
Rosen Penev
2023-08-05 10:07:52 -05:00
committed by GitHub
parent bec59b4b7b
commit c0e9428218
6 changed files with 2 additions and 7 deletions
-1
View File
@@ -32,7 +32,6 @@
namespace TagLib {
namespace IT {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {
-2
View File
@@ -50,8 +50,6 @@ namespace TagLib {
void setLengthInPatterns(unsigned char lengthInPatterns);
private:
friend class File;
Properties(const Properties&) = delete;
Properties &operator=(const Properties&) = delete;
-1
View File
@@ -32,7 +32,6 @@
namespace TagLib {
namespace S3M {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {
+1 -1
View File
@@ -58,7 +58,7 @@ namespace
#endif
}
FileHandle openFile(const int fileDescriptor, bool readOnly)
FileHandle openFile([[maybe_unused]] const int fileDescriptor, [[maybe_unused]] bool readOnly)
{
return InvalidFileHandle;
}
+1 -1
View File
@@ -50,7 +50,7 @@ bool zlib::isAvailable()
#endif
}
ByteVector zlib::decompress(const ByteVector &data)
ByteVector zlib::decompress([[maybe_unused]] const ByteVector &data)
{
#ifdef HAVE_ZLIB
-1
View File
@@ -33,7 +33,6 @@
namespace TagLib {
namespace XM {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {