Commit Graph

1596 Commits (3ebdb2fd8bb4482a2e8958e0511d2e4fbcb9dc8d)
 

Author SHA1 Message Date
Gabi Melman a2890f2778
Merge pull request #596 from Broekman/master
Issue fix for spdlog #595. Conversion warning.
8 years ago
Stefan Broekman de4644b44a Issue fix for spdlog #595. Conversion warning.
See: https://github.com/gabime/spdlog/issues/595

On line 85 in file sinks/wincolor_sink.h:
back_color &= ~(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE |
FOREGROUND_INTENSITY);

'back_color' is of type 'WORD' (unsigned short) whereas a bitwise
complement/NOT returns an int. This results in a conversion warning with
-Wconversion enabled.

85:20: warning: conversion to 'WORD {aka short unsigned int}' from 'int'
may alter its value [-Wconversion] back_color &= ~(FOREGROUND_RED |
FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY);

Possible solution:
We know that the result of ~(FOREGROUND_RED | FOREGROUND_GREEN |
FOREGROUND_BLUE | FOREGROUND_INTENSITY) is always within the limits of
an unsigned short so a simple cast should suffice (correct me if I'm
wrong):

back_color &= static_cast<unsigned short>(~(FOREGROUND_RED |
FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY));
8 years ago
Gabi Melman 03db102375
Update README.md 8 years ago
gabime 3d967dd716 added catch license in tests folder 8 years ago
Gabi Melman b53d207f44
Update file_helper.h 8 years ago
Gabi Melman fde12195ee
Update file_helper.h 8 years ago
gabime 4ca6991828 astyle 8 years ago
gabime 813dcbcf63 version 0.16.2 8 years ago
gabime 7663f58379 Fixed file_helper::split_by_extenstion tests for gcc 8 years ago
gabime 8e3f968ba4 Fixed file_helper::split_by_extenstion and added more tests for it 8 years ago
gabime f695e536dd Fixed file_helper::split_by_extenstion and added more tests for it 8 years ago
gabime f257e4ea8c gitignore tests/logs 8 years ago
gabime 0ed3e4cf76 Merge branch 'master' of https://github.com/gabime/spdlog 8 years ago
gabime 6d355fd602 report about unknown excepptions before rethrow 8 years ago
Gabi Melman dd0b7b2d13
Merge pull request #590 from fcharlie/master
fix split_by_extenstion parse error extenstion
8 years ago
Force Charlie 42e5d98a48 fix split_by_extenstion parse error extenstion 8 years ago
Gabi Melman c060a10c10
update to version 0.16.1 8 years ago
Gabi Melman 79a3a633c7
uupdate version to 0.16.1 8 years ago
Gabi Melman 52dfd478d6
Merge pull request #584 from horar/master
Update version strings to 0.16.0
8 years ago
Gabi Melman 48eca46680
Merge pull request #586 from horar/fix/warnings
Solve compiler warning in tests
8 years ago
Ľubomír Carik f93277d271 Solve compiler warning in tests
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
8 years ago
Ľubomír Carik dda8af0092 Update version strings to 0.16.0
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
8 years ago
gabime ed5498a2e9 report unexected exception types 8 years ago
gabime 6dd928dc3c Undo fix #529 (causes a warning under gcc and clang when no args passed) 8 years ago
gabime de595fe2b7 Fix #529 (SPDLOG_TRACE macro problem) 8 years ago
Gabi Melman d460c3026a
Merge pull request #568 from adubovikov/master
added facilty for syslog
8 years ago
Gabi Melman 88fe218741
Update logger_impl.h 8 years ago
Gabi Melman b1be7b9fea
async log: increased sleep to to 500ms the worker loop 8 years ago
Alexandr Dubovikov bec6919587 added facilty for syslog 8 years ago
Gabi Melman 2f81ff7f17
Update README.md 8 years ago
Gabi Melman 4db70c2078
Update README.md 8 years ago
gabime 26b390bb19 removed lock from dist_sink::_flush() (moved to base_sink::flush()) 8 years ago
gabime a9149c6d46 added lock on flush in base_sink 8 years ago
gabime 859b7f1d58 fixed test for visual c++ 8 years ago
gabime 49989e0678 fixed test for gcc 4.8 (no regex) 8 years ago
gabime 70274924b7 fixed test comment 8 years ago
gabime f5939f9e56 astyle 8 years ago
gabime 84e307521d Fixed test 8 years ago
gabime 3c4a2bf531 Handle file extensions in rotating and daily loggers 8 years ago
gabime 60ce47a814 Removed include_if.cpp from the tests .sln 8 years ago
Gabi Melman 613f024d42
Removed forgotten *_if declarations 8 years ago
gabime 799ba2a57b added SPDLOG_DISABLE_TID_CACHING macro to prevent invalid thread ids after fork 8 years ago
gabime adbc22096a enable final keyword by default. Can be disabled in tweakme.h for older compilers 8 years ago
gabime e7cf25a1c0 fixed issue #562 8 years ago
gabime dcc7b347ca Removed all *_if functions (trace_if, debug_if, info_if,..) because they are redundant and confusing way to preform if 8 years ago
gabime 9a8f5c59e2 Added .idea/ to .gitignore 8 years ago
gabime c41b6d28b5 astyle 8 years ago
gabime fd170b0fe1 catch(...) exceptions, report it, and rethrow 8 years ago
Gabi Melman 587b528292
Merge pull request #556 from jpcima/syslog-build
correct include path for sink/syslog_sink.h
8 years ago
Gabi Melman 36c8e79a4a
Merge pull request #555 from jpcima/windebug-sink
accept msvc_sink on all compilers, add name windebug_sink (fixes #554)
8 years ago