Commit Graph

19 Commits (c96930fd9d09e49355225ecd538510b9db2a7158)

Author SHA1 Message Date
Lioncash ee21b5378b microprofile: Silence warning in headers
Silences a truncation warning by making the truncation explicit and
documenting the reason for it.
4 years ago
Lioncash 4a4b685a04 common: Enable warnings as errors
Cleans up common so that we can enable warnings as errors.
4 years ago
bunnei 3d592972dc
Revert "core: Fix clang build" 4 years ago
Lioncash be1954e04c core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.

Fixes #4795
4 years ago
ReinUsesLisp 3dcaaa18be externals/microprofile: Fix data race in g_bUseLock
As reported by tsan, g_bUseLock had a data race. Fix this using an
atomic boolean.
4 years ago
Lioncash ec8d72a567 microprofile: Don't memset through std::atomic types
Two of the members of the MicroProfileThreadLog contains two std::atomic
instances. Given these aren't trivially-copyable types, we shouldn't be
memsetting the structure, given implementation details can contain other
members within it.

To avoid potential undefined behavior on platforms, we can use aggregate
initialization to zero out the members while still having well-defined
behavior.

While we're at it we can also silence some sign conversion warnings.
4 years ago
Lioncash e2d8be1ca2 General: Resolve warnings related to missing declarations 5 years ago
ReinUsesLisp ba9674862d microprofile: Silence sign comparison warning 5 years ago
Fernando Sahmkow 448856695a Microprofile: Allow accessing token. 5 years ago
ReinUsesLisp fa0d65fc7b microprofile: Silence conversion warnings 5 years ago
unknown af6e0faf0a Fix some warnings 7 years ago
Andrix44 b20dfb357b Fix some warnings in the microprofile 7 years ago
Fernando Sahmkow d8af401b2c Fix Microprofile in MinGW (#2530) 8 years ago
noah the goodra 2509c44078 changed the WIN32 macro in microprofileui (#2528)
I changed the macro in microprofileui.h from WIN32 to _WIN32 so that it
would correctly dectect that its being compiled on a windows platform
8 years ago
James Rowe c3ea6f4ddb Add mingw compile support 8 years ago
Jan Beich 50ce19b3ff microprofile: unbreak on POSIX systems
In file included from src/common/microprofile.cpp:7:
In file included from src/./common/microprofile.h:23:
externals/microprofile/microprofile.h:830:5: error: use of undeclared identifier 'MP_BREAK'
    MP_ASSERT(t == nBegin);
    ^
externals/microprofile/microprofile.h:238:34: note: expanded from macro 'MP_ASSERT'
                                 ^
externals/microprofile/microprofile.h:831:5: error: use of undeclared identifier 'MP_BREAK'
    MP_ASSERT(nTimerIndex == (nToken&0x3fff));
    ^
externals/microprofile/microprofile.h:238:34: note: expanded from macro 'MP_ASSERT'
                                 ^
[...]
8 years ago
Sam Spilsbury fdd7e9e86a microprofileui: Use correct printf specifier 9 years ago
Sam Spilsbury aacc3a4a59 microprofile: Use std::abs
Using the global-namespace C function will cause the wrong
overload to get picked
9 years ago
Yuri Kunde Schlesner 0fcabd2b11 Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and
multi-threaded timeline view.
10 years ago