0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

Fixed some warnings

This commit is contained in:
Sergey Yagovtsev 2016-02-17 23:43:37 +03:00
parent 434622e282
commit a5730169cc
4 changed files with 10 additions and 15 deletions

View File

@ -16,6 +16,7 @@ include_directories(
if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
endif(UNIX)
add_subdirectory(src)

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.If not, see <http://www.gnu.org/licenses/>.
/**/
**/
#ifndef ____PROFILER____H_______
#define ____PROFILER____H_______
@ -54,19 +54,13 @@ along with this program.If not, see <http://www.gnu.org/licenses/>.
#ifdef _WIN32
#ifdef _BUILD_PROFILER
#define PROFILER_API __declspec(dllexport)
#define EXPIMP_TEMPLATE
#else
#define PROFILER_API __declspec(dllimport)
#define EXPIMP_TEMPLATE extern
#endif
#else
#define PROFILER_API
#define EXPIMP_TEMPLATE
#endif
namespace profiler
{
class Mark;

View File

@ -14,11 +14,11 @@ const unsigned char MARK_TYPE_BEGIN = 3;
const unsigned char MARK_TYPE_END = 4;
Mark::Mark(const char* _name, color_t _color) :
begin(0),
color(_color),
thread_id(0),
name(_name),
type(0)
type(0),
color(_color),
begin(0),
thread_id(0),
name(_name)
{
tick(begin);
thread_id = std::hash<std::thread::id>()(std::this_thread::get_id());
@ -32,8 +32,8 @@ void Mark::tick(timestamp_t& stamp)
}
Block::Block(const char* _name, color_t _color) :
Mark(_name, _color),
end(begin)
Mark(_name, _color),
end(begin)
{
}

View File

@ -14,7 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.If not, see <http://www.gnu.org/licenses/>.
/**/
**/
#ifndef ___PROFILER____MANAGER____H______
#define ___PROFILER____MANAGER____H______