Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last boss warning fix #9868

Merged
merged 2 commits into from Feb 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion rpcs3/cmake_modules/ConfigureCompiler.cmake
Expand Up @@ -40,7 +40,9 @@ else()
endif()

#TODO Clean the code so these are removed
add_compile_options(-Wno-attributes)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.1 OR NOT CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-Wno-attributes)
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-fconstexpr-steps=16777216)
Expand Down
4 changes: 2 additions & 2 deletions rpcs3/rpcs3qt/config_adapter.h
Expand Up @@ -3,7 +3,7 @@
#include <QStringList>

#include "emu_settings_type.h"
#include "yaml-cpp/yaml.h"
#include "util/yaml.hpp"

// Helper methods to interact with YAML and the config settings.
namespace cfg_adapter
Expand All @@ -15,7 +15,7 @@ namespace cfg_adapter

/** Returns possible options for values for some particular setting.*/
QStringList get_options(cfg_location location);

/** Returns dynamic property for some particular setting.*/
bool get_is_dynamic(emu_settings_type type);

Expand Down
3 changes: 1 addition & 2 deletions rpcs3/rpcs3qt/emu_settings.h
@@ -1,8 +1,7 @@
#pragma once

#include "util/types.hpp"

#include "yaml-cpp/yaml.h"
#include "util/yaml.hpp"

#include "microphone_creator.h"
#include "render_creator.h"
Expand Down
4 changes: 2 additions & 2 deletions rpcs3/util/shared_ptr.hpp
Expand Up @@ -30,13 +30,13 @@ namespace stx
}
else if constexpr (std::is_convertible_v<U*, T*>)
{
const auto u = &sample<U>;
const auto u = std::addressof(sample<U>);
const volatile void* x = u;
return static_cast<T*>(u) == x;
}
else if constexpr (std::is_convertible_v<T*, U*>)
{
const auto t = &sample<T>;
const auto t = std::addressof(sample<T>);
const volatile void* x = t;
return static_cast<U*>(t) == x;
}
Expand Down
1 change: 1 addition & 0 deletions rpcs3/util/yaml.hpp
Expand Up @@ -12,6 +12,7 @@
#pragma GCC diagnostic ignored "-Wall"
#pragma GCC diagnostic ignored "-Wextra"
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wattributes"
#include "yaml-cpp/yaml.h"
#pragma GCC diagnostic pop
#endif
Expand Down