mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Merge pull request #10735 from Mic92/more-warnings
Add more compiler warnings
This commit is contained in:
commit
bcfc722f81
4 changed files with 6 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -98,7 +98,7 @@ ifdef HOST_WINDOWS
|
||||||
GLOBAL_LDFLAGS += -Wl,--export-all-symbols
|
GLOBAL_LDFLAGS += -Wl,--export-all-symbols
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GLOBAL_CXXFLAGS += -g -Wall -Wimplicit-fallthrough -include $(buildprefix)config.h -std=c++2a -I src
|
GLOBAL_CXXFLAGS += -g -Wall -Wdeprecated-copy -Wignored-qualifiers -Wimplicit-fallthrough -include $(buildprefix)config.h -std=c++2a -I src
|
||||||
|
|
||||||
# Include the main lib, causing rules to be defined
|
# Include the main lib, causing rules to be defined
|
||||||
|
|
||||||
|
|
|
@ -202,7 +202,7 @@ struct CurlInputScheme : InputScheme
|
||||||
{
|
{
|
||||||
const std::set<std::string> transportUrlSchemes = {"file", "http", "https"};
|
const std::set<std::string> transportUrlSchemes = {"file", "http", "https"};
|
||||||
|
|
||||||
const bool hasTarballExtension(std::string_view path) const
|
bool hasTarballExtension(std::string_view path) const
|
||||||
{
|
{
|
||||||
return hasSuffix(path, ".zip") || hasSuffix(path, ".tar")
|
return hasSuffix(path, ".zip") || hasSuffix(path, ".tar")
|
||||||
|| hasSuffix(path, ".tgz") || hasSuffix(path, ".tar.gz")
|
|| hasSuffix(path, ".tgz") || hasSuffix(path, ".tar.gz")
|
||||||
|
|
|
@ -182,6 +182,8 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HintFmt & operator=(HintFmt const & rhs) = default;
|
||||||
|
|
||||||
std::string str() const
|
std::string str() const
|
||||||
{
|
{
|
||||||
return fmt.str();
|
return fmt.str();
|
||||||
|
|
|
@ -77,6 +77,8 @@ public:
|
||||||
return ref<T2>((std::shared_ptr<T2>) p);
|
return ref<T2>((std::shared_ptr<T2>) p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ref<T> & operator=(ref<T> const & rhs) = default;
|
||||||
|
|
||||||
bool operator == (const ref<T> & other) const
|
bool operator == (const ref<T> & other) const
|
||||||
{
|
{
|
||||||
return p == other.p;
|
return p == other.p;
|
||||||
|
|
Loading…
Reference in a new issue