Fix warnings under clang-cl (#1106)

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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-08-05 08:07:52 -07:00 committed by GitHub
parent bec59b4b7b
commit c0e9428218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 7 deletions

View File

@ -32,7 +32,6 @@
namespace TagLib {
namespace IT {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {

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;

View File

@ -32,7 +32,6 @@
namespace TagLib {
namespace S3M {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {

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;
}

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

View File

@ -33,7 +33,6 @@
namespace TagLib {
namespace XM {
class TAGLIB_EXPORT Properties : public AudioProperties {
friend class File;
public:
/*! Flag bits. */
enum {