Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
87ec1ab9
Commit
87ec1ab9
authored
Aug 19, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed clang warnings
parent
b057b979
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
include/spdlog/sinks/syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+3
-2
include/spdlog/sinks/systemd_sink.h
include/spdlog/sinks/systemd_sink.h
+3
-2
No files found.
include/spdlog/sinks/syslog_sink.h
View file @
87ec1ab9
...
...
@@ -73,7 +73,8 @@ protected:
bool
enable_formatting_
=
false
;
private:
std
::
array
<
int
,
7
>
syslog_levels_
;
using
levels_array
=
std
::
array
<
int
,
7
>
;
levels_array
syslog_levels_
;
// must store the ident because the man says openlog might use the pointer as
// is and not a string copy
const
std
::
string
ident_
;
...
...
@@ -83,7 +84,7 @@ private:
//
int
syslog_prio_from_level
(
const
details
::
log_msg
&
msg
)
const
{
return
syslog_levels_
.
at
(
static_cast
<
int
>
(
msg
.
level
));
return
syslog_levels_
.
at
(
static_cast
<
levels_array
::
size_type
>
(
msg
.
level
));
}
};
...
...
include/spdlog/sinks/systemd_sink.h
View file @
87ec1ab9
...
...
@@ -38,7 +38,8 @@ public:
systemd_sink
&
operator
=
(
const
systemd_sink
&
)
=
delete
;
protected:
std
::
array
<
int
,
7
>
syslog_levels_
;
using
levels_array
=
std
::
array
<
int
,
7
>
;
levels_array
syslog_levels_
;
void
sink_it_
(
const
details
::
log_msg
&
msg
)
override
{
...
...
@@ -72,7 +73,7 @@ protected:
int
syslog_level
(
level
::
level_enum
l
)
{
return
syslog_levels_
.
at
(
static_cast
<
int
>
(
l
));
return
syslog_levels_
.
at
(
static_cast
<
levels_array
::
size_type
>
(
l
));
}
void
flush_
()
override
{}
...
...
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