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
3b425aff
Commit
3b425aff
authored
Sep 21, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing braces around initializer warnings about std::array initializations
parent
90801267
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
os-inl.h
include/spdlog/details/os-inl.h
+2
-2
pattern_formatter-inl.h
include/spdlog/details/pattern_formatter-inl.h
+5
-5
syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+2
-2
systemd_sink.h
include/spdlog/sinks/systemd_sink.h
+2
-2
No files found.
include/spdlog/details/os-inl.h
View file @
3b425aff
...
...
@@ -396,8 +396,8 @@ SPDLOG_INLINE bool is_color_terminal() SPDLOG_NOEXCEPT
#ifdef _WIN32
return
true
;
#else
static
constexpr
std
::
array
<
const
char
*
,
14
>
Terms
=
{
"ansi"
,
"color"
,
"console"
,
"cygwin"
,
"gnome"
,
"konsole"
,
"kterm"
,
"linux"
,
"msys"
,
"putty"
,
"rxvt"
,
"screen"
,
"vt100"
,
"xterm"
};
static
constexpr
std
::
array
<
const
char
*
,
14
>
Terms
=
{
{
"ansi"
,
"color"
,
"console"
,
"cygwin"
,
"gnome"
,
"konsole"
,
"kterm"
,
"linux"
,
"msys"
,
"putty"
,
"rxvt"
,
"screen"
,
"vt100"
,
"xterm"
}
}
;
const
char
*
env_p
=
std
::
getenv
(
"TERM"
);
if
(
env_p
==
nullptr
)
...
...
include/spdlog/details/pattern_formatter-inl.h
View file @
3b425aff
...
...
@@ -152,7 +152,7 @@ static int to12h(const tm &t)
}
// Abbreviated weekday name
static
std
::
array
<
const
char
*
,
7
>
days
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
};
static
std
::
array
<
const
char
*
,
7
>
days
{
{
"Sun"
,
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
}
};
template
<
typename
ScopedPadder
>
class
a_formatter
:
public
flag_formatter
...
...
@@ -171,7 +171,7 @@ public:
};
// Full weekday name
static
std
::
array
<
const
char
*
,
7
>
full_days
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
};
static
std
::
array
<
const
char
*
,
7
>
full_days
{
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
}
};
template
<
typename
ScopedPadder
>
class
A_formatter
:
public
flag_formatter
...
...
@@ -190,7 +190,7 @@ public:
};
// Abbreviated month
static
const
std
::
array
<
const
char
*
,
12
>
months
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
const
std
::
array
<
const
char
*
,
12
>
months
{
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sept"
,
"Oct"
,
"Nov"
,
"Dec"
}
};
template
<
typename
ScopedPadder
>
class
b_formatter
:
public
flag_formatter
...
...
@@ -209,8 +209,8 @@ public:
};
// Full month name
static
const
std
::
array
<
const
char
*
,
12
>
full_months
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
};
static
const
std
::
array
<
const
char
*
,
12
>
full_months
{
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
}
}
;
template
<
typename
ScopedPadder
>
class
B_formatter
:
public
flag_formatter
...
...
include/spdlog/sinks/syslog_sink.h
View file @
3b425aff
...
...
@@ -22,13 +22,13 @@ class syslog_sink : public base_sink<Mutex>
public
:
syslog_sink
(
std
::
string
ident
,
int
syslog_option
,
int
syslog_facility
,
bool
enable_formatting
)
:
enable_formatting_
{
enable_formatting
}
,
syslog_levels_
{
/* spdlog::level::trace */
LOG_DEBUG
,
,
syslog_levels_
{
{
/* spdlog::level::trace */
LOG_DEBUG
,
/* spdlog::level::debug */
LOG_DEBUG
,
/* spdlog::level::info */
LOG_INFO
,
/* spdlog::level::warn */
LOG_WARNING
,
/* spdlog::level::err */
LOG_ERR
,
/* spdlog::level::critical */
LOG_CRIT
,
/* spdlog::level::off */
LOG_INFO
}
/* spdlog::level::off */
LOG_INFO
}
}
,
ident_
{
std
::
move
(
ident
)}
{
// set ident to be program name if empty
...
...
include/spdlog/sinks/systemd_sink.h
View file @
3b425aff
...
...
@@ -23,13 +23,13 @@ class systemd_sink : public base_sink<Mutex>
public
:
//
systemd_sink
()
:
syslog_levels_
{
/* spdlog::level::trace */
LOG_DEBUG
,
:
syslog_levels_
{
{
/* spdlog::level::trace */
LOG_DEBUG
,
/* spdlog::level::debug */
LOG_DEBUG
,
/* spdlog::level::info */
LOG_INFO
,
/* spdlog::level::warn */
LOG_WARNING
,
/* spdlog::level::err */
LOG_ERR
,
/* spdlog::level::critical */
LOG_CRIT
,
/* spdlog::level::off */
LOG_INFO
}
/* spdlog::level::off */
LOG_INFO
}
}
{}
~
systemd_sink
()
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