Fix some warnings

I think they came from the last Nixpkgs bump.
This commit is contained in:
John Ericson 2024-07-25 00:02:43 -04:00
parent e92dd06a7b
commit 1ae5738317
3 changed files with 8 additions and 1 deletions

View file

@ -2,7 +2,11 @@
#include "eval-inline.hh"
#include <sstream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-enum"
#include <toml.hpp>
#pragma GCC diagnostic pop
namespace nix {

View file

@ -10,6 +10,8 @@
#include "compression.hh"
#include "filetransfer.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-enum"
#include <aws/core/Aws.h>
#include <aws/core/VersionConfig.h>
#include <aws/core/auth/AWSCredentialsProvider.h>
@ -25,6 +27,7 @@
#include <aws/s3/model/ListObjectsRequest.h>
#include <aws/s3/model/PutObjectRequest.h>
#include <aws/transfer/TransferManager.h>
#pragma GCC diagnostic pop
using namespace Aws::Transfer;

View file

@ -8,7 +8,7 @@
#include <optional>
#include <string>
namespace Aws { namespace Client { class ClientConfiguration; } }
namespace Aws { namespace Client { struct ClientConfiguration; } }
namespace Aws { namespace S3 { class S3Client; } }
namespace nix {