Merge pull request #110 from lioncash/warnings

Core: Fix warnings in gpu.cpp
This commit is contained in:
bunnei 2014-09-14 21:28:44 -04:00
commit 31d9cf4d17
2 changed files with 7 additions and 7 deletions

View file

@ -516,12 +516,12 @@ struct Regs {
// Used for debugging purposes, so performance is not an issue here
static std::string GetCommandName(int index) {
std::map<u32, std::string> map;
Regs regs;
// TODO: MSVC does not support using offsetof() on non-static data members even though this
// is technically allowed since C++11. Hence, this functionality is disabled until
// MSVC properly supports it.
#ifndef _MSC_VER
Regs regs;
#define ADD_FIELD(name) \
do { \
map.insert({PICA_REG_INDEX(name), #name}); \