mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Fix several warnings
A small, nonexhaustive set of warning fixes. The DiscIO Volume change is a workaround for a GCC bug [1] that causes returning an unengaged std::optional to emit annoying -Wmaybe-uninitialized warnings. This last change alone fixes pages upon pages of warnings since Volume.h is included from several files. -Wstringop-truncation is another irrelevant warning for us, but unfortunately there seems to be no way to disable it without adding ugly pragmas wherever the warning appears.
This commit is contained in:
@ -35,7 +35,7 @@ using ReadLock = std::shared_lock<std::shared_mutex>;
|
||||
using WriteLock = std::unique_lock<std::shared_mutex>;
|
||||
#endif
|
||||
|
||||
void AddLayerInternal(std::shared_ptr<Layer> layer)
|
||||
static void AddLayerInternal(std::shared_ptr<Layer> layer)
|
||||
{
|
||||
{
|
||||
WriteLock lock(s_layers_rw_lock);
|
||||
|
Reference in New Issue
Block a user