Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
4456f96a
Commit
4456f96a
authored
Aug 13, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed clang warnings
parent
8008d7fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
async.h
include/spdlog/async.h
+1
-1
android_sink.h
include/spdlog/sinks/android_sink.h
+2
-2
ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+1
-2
No files found.
include/spdlog/async.h
View file @
4456f96a
...
...
@@ -42,7 +42,7 @@ struct async_factory_impl
auto
&
registry_inst
=
details
::
registry
::
instance
();
// create global thread pool if not already exists..
std
::
lock_guard
<
std
::
recursive_mutex
>
(
registry_inst
.
tp_mutex
());
std
::
lock_guard
<
std
::
recursive_mutex
>
lock
(
registry_inst
.
tp_mutex
());
auto
tp
=
registry_inst
.
get_tp
();
if
(
tp
==
nullptr
)
{
...
...
include/spdlog/sinks/android_sink.h
View file @
4456f96a
...
...
@@ -30,8 +30,8 @@ template<typename Mutex>
class
android_sink
SPDLOG_FINAL
:
public
base_sink
<
Mutex
>
{
public
:
explicit
android_sink
(
const
std
::
string
&
tag
=
"spdlog"
,
bool
use_raw_msg
=
false
)
:
tag_
(
tag
)
explicit
android_sink
(
std
::
string
tag
=
"spdlog"
,
bool
use_raw_msg
=
false
)
:
tag_
(
std
::
move
(
tag
)
)
,
use_raw_msg_
(
use_raw_msg
)
{
}
...
...
include/spdlog/sinks/ansicolor_sink.h
View file @
4456f96a
...
...
@@ -84,8 +84,7 @@ public:
const
std
::
string
on_cyan
=
"
\033
[46m"
;
const
std
::
string
on_white
=
"
\033
[47m"
;
void
log
(
const
details
::
log_msg
&
msg
)
SPDLOG_FINAL
override
{
void
log
(
const
details
::
log_msg
&
msg
)
SPDLOG_FINAL
{
// Wrap the originally formatted message in color codes.
// If color is not supported in the terminal, log as is instead.
std
::
lock_guard
<
mutex_t
>
lock
(
mutex_
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment