dolphin/Source/Core/Common
Léo Lam ad75215bb0 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.
2020-01-04 12:11:39 +01:00
..
Config Fix several warnings 2020-01-04 12:11:39 +01:00
Crypto Common: Use nested namespace specifiers where applicable 2019-06-17 16:36:48 -04:00
Debug Use std::istringstream or std::ostringstream instead of std::stringstream where possible. 2019-12-29 23:45:02 -05:00
GL MacOS: Dispatch GL calls to main thread to prevent crashes on Catalina 2020-01-01 23:06:19 -05:00
Logging Common: Unify logging namespace with Common 2019-11-28 05:13:21 -05:00
Align.h
Analytics.cpp Common/Analytics: Convert std::string overload into std::string_view 2019-06-05 13:24:31 -04:00
Analytics.h Common/Analytics: Convert std::string overload into std::string_view 2019-06-05 13:24:31 -04:00
AndroidAnalytics.cpp Android: Add usage statistics to android. 2018-08-23 17:31:17 -04:00
AndroidAnalytics.h Android: Add usage statistics to android. 2018-08-23 17:31:17 -04:00
Arm64Emitter.cpp Compile fixes for Windows-on-ARM64 2019-12-28 19:20:41 +10:00
Arm64Emitter.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
ArmCommon.h
ArmCPUDetect.cpp Compile fixes for Windows-on-ARM64 2019-12-28 19:20:41 +10:00
Assert.h Common: Unify logging namespace with Common 2019-11-28 05:13:21 -05:00
Atomic_GCC.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Atomic_Win32.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Atomic.h
BitField.h
BitField.natvis
BitSet.h BitSet: Add << operator 2018-10-28 17:57:46 +00:00
BitUtils.h Common/BitUtils: Implement BitCast(To|From)Array 2019-12-22 14:48:47 -05:00
BlockingLoop.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
CDUtils.cpp Remove obsolete "Windows compatibility" macros 2019-10-07 22:46:37 +02:00
CDUtils.h
ChunkFile.h ChunkFile: Don't access element zero of empty container 2019-02-10 13:28:50 +10:00
CMakeLists.txt VolumeVerifier: Add zip support for datfile 2019-08-24 16:37:19 +02:00
CodeBlock.h Fix spelling in assert macro 2018-08-15 12:12:19 -05:00
ColorUtil.cpp
ColorUtil.h
Common.h Remove obsolete "Windows compatibility" macros 2019-10-07 22:46:37 +02:00
Common.vcxproj Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
Common.vcxproj.filters Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
CommonFuncs.cpp Move GetModuleName to Common 2019-10-07 22:46:36 +02:00
CommonFuncs.h Move GetModuleName to Common 2019-10-07 22:46:36 +02:00
CommonPaths.h Rename all instances of "CemuhookUDPServer"/"UDPServer" to "DualShockUDPClient"/"DSUClient". 2019-10-27 16:05:22 +01:00
CommonTypes.h
CompatPatches.cpp Prefer MessageBoxW to MessageBoxA 2019-11-23 13:56:05 +00:00
Compiler.h Replace custom UNUSED macro with [[maybe_unused]] 2019-05-04 23:04:18 +02:00
CPUDetect.h
DebugInterface.h Common/DebugInterface: Remove GetInstructionSize() 2019-07-09 14:19:40 -04:00
DynamicLibrary.cpp Common: Use fmt where applicable 2019-06-14 15:04:09 -04:00
DynamicLibrary.h Common: Add DynamicLibrary helper class 2019-03-29 19:52:33 +10:00
ENetUtil.cpp Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
ENetUtil.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Event.h Minor changes to usages of std::condition_variable. 2019-04-06 17:39:25 -05:00
File.cpp
File.h Fix sram accesses. 2018-09-29 22:52:29 -07:00
FileSearch.cpp Work around C++20 std::filesystem changes related to u8string 2019-06-21 18:34:21 +02:00
FileSearch.h
FileUtil.cpp Merge pull request #8393 from CookiePLMonster/long-paths 2019-11-09 21:10:16 +01:00
FileUtil.h Merge pull request #8393 from CookiePLMonster/long-paths 2019-11-09 21:10:16 +01:00
FixedSizeQueue.h FixedSizeQueue: Work around GCC generating large amounts of debug info 2019-10-06 16:23:45 +10:00
Flag.h
FloatUtils.cpp
FloatUtils.h Attempt to fix linter issues. 2018-08-13 12:17:56 -07:00
FPURoundMode.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
GekkoDisassembler.cpp Common/GekkoDisassembler: Don't print out '\0' as a character 2019-07-03 20:12:50 -04:00
GekkoDisassembler.h Common/GekkoDisassembler: Don't print out '\0' as a character 2019-07-03 20:12:50 -04:00
GenericCPUDetect.cpp
GenericFPURoundMode.cpp Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Hash.cpp Compile fixes for Windows-on-ARM64 2019-12-28 19:20:41 +10:00
Hash.h
HttpRequest.cpp Fix out of bounds read in HttpRequest::Impl::Fetch logging 2019-06-23 21:44:51 +02:00
HttpRequest.h Common/HttpRequest: Add option to allow non 200 response codes 2019-04-13 12:58:23 +02:00
Image.cpp Fix critital buffer overflow in LoadPNG 2018-08-19 17:35:15 +02:00
Image.h
IniFile.cpp StringUtil: Use std::string_view more 2019-07-23 14:49:12 +02:00
IniFile.h StringUtil: Use std::string_view more 2019-07-23 14:49:12 +02:00
Intrinsics.h
JitRegister.cpp Common: Use fmt where applicable 2019-06-14 15:04:09 -04:00
JitRegister.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Lazy.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
LdrWatcher.cpp
LdrWatcher.h
LinearDiskCache.h
make_scmrev.h.js
MathUtil.cpp Common: Move Matrix classes out of MathUtil into their own files and make their interface more friendly. 2019-02-03 11:35:31 -06:00
MathUtil.h InputCommon: Detect when evdev exposes acceleration/gyroscope data. 2019-11-09 13:34:29 -06:00
Matrix.cpp Common: Add additional Matrix/Vec functions. 2019-11-08 15:46:45 -06:00
Matrix.h Common: Add additional Matrix/Vec functions. 2019-11-08 15:46:45 -06:00
MD5.cpp Common: Use fmt where applicable 2019-06-14 15:04:09 -04:00
MD5.h
MemArena.cpp
MemArena.h
MemoryUtil.cpp
MemoryUtil.h
MinizipUtil.h VolumeVerifier: Add zip support for datfile 2019-08-24 16:37:19 +02:00
MsgHandler.cpp Improve thread safety and remove an unnecessary string allocation from MsgAlert 2019-07-20 21:03:45 +02:00
MsgHandler.h Common/MsgHandler: Namespace code within the Common namespace 2019-06-19 16:03:55 -04:00
NandPaths.cpp Common: Use fmt where applicable 2019-06-14 15:04:09 -04:00
NandPaths.h NetPlay: Synchronize Mii data 2019-04-08 07:06:21 -04:00
Network.cpp Common/Network: Use std::nullopt in StringToMacAddress 2019-12-06 09:59:11 -05:00
Network.h Common/Network: Make StringToMacAddress use a string_view 2019-12-06 09:45:25 -05:00
PcapFile.cpp
PcapFile.h
PerformanceCounter.cpp
PerformanceCounter.h
Profiler.cpp Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Profiler.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
QoSSession.cpp
QoSSession.h
Random.cpp
Random.h
Result.h
scmrev.h.in
SCMRevGen.vcxproj Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
ScopeGuard.h
SDCardUtil.cpp
SDCardUtil.h
Semaphore.h Common: Use GCD semaphores on macOS 2018-11-07 05:12:20 -08:00
SettingsHandler.cpp Common/SettingsHandler: Use fmt for printing out the serial number 2019-07-16 04:23:20 -04:00
SettingsHandler.h Common/SettingsHandler: Use std::string_view where applicable 2019-07-16 04:15:25 -04:00
SFMLHelper.cpp Improve SFMLHelper 2018-10-02 05:44:50 -04:00
SFMLHelper.h Improve SFMLHelper 2018-10-02 05:44:50 -04:00
SPSCQueue.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
StringUtil.cpp Use std::istringstream or std::ostringstream instead of std::stringstream where possible. 2019-12-29 23:45:02 -05:00
StringUtil.h StringUtil: Require TryParse of float types to use the entire string. 2019-10-18 19:56:48 -05:00
Swap.h
SymbolDB.cpp Common/SymbolDB: Use std::string_view where applicable 2019-06-16 01:10:02 -04:00
SymbolDB.h Common/SymbolDB: Use std::string_view where applicable 2019-06-16 01:10:02 -04:00
Thread.cpp
Thread.h
Timer.cpp Common: Use fmt where applicable 2019-06-14 15:04:09 -04:00
Timer.h
TraversalClient.cpp NetPlay: Implement chunked data transfer 2018-11-19 06:37:09 -05:00
TraversalClient.h
TraversalProto.h
TraversalServer.cpp TraversalServer: use C++ <chrono> instead of gettimeofday 2019-05-10 21:33:26 +02:00
UPnP.cpp
UPnP.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
VariantUtil.h Common: Add missing header guards 2019-06-17 18:37:56 -04:00
Version.cpp
Version.h
WindowSystemInfo.h DolphinNoGUI: Add a FBDev platform 2019-09-01 14:00:40 +10:00
WorkQueueThread.h Improvements to WorkQueueThread 2019-10-08 22:57:33 +02:00
x64ABI.cpp
x64ABI.h
x64CPUDetect.cpp
x64Emitter.cpp Merge pull request #8027 from MerryMage/MOVAPS 2019-05-22 15:05:17 +10:00
x64Emitter.h Common/x64Emitter: Resolve TODO in OpArg's operator== 2019-05-30 10:27:28 -04:00
x64FPURoundMode.cpp Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
x64Reg.h