Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
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
glog
Commits
e6939aa5
Unverified
Commit
e6939aa5
authored
Dec 31, 2018
by
Sergiu Deitsch
Committed by
GitHub
Dec 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #412 from pwnall/fix_warn
Fix unused variable warning in GCC
parents
6deff5ab
0989ffad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
logging.cc
src/logging.cc
+2
-2
No files found.
src/logging.cc
View file @
e6939aa5
...
@@ -1221,14 +1221,14 @@ void LogMessage::Init(const char* file,
...
@@ -1221,14 +1221,14 @@ void LogMessage::Init(const char* file,
allocated_
=
NULL
;
allocated_
=
NULL
;
if
(
severity
!=
GLOG_FATAL
||
!
exit_on_dfatal
)
{
if
(
severity
!=
GLOG_FATAL
||
!
exit_on_dfatal
)
{
#ifdef GLOG_THREAD_LOCAL_STORAGE
#ifdef GLOG_THREAD_LOCAL_STORAGE
const
uintptr_t
kAlign
=
sizeof
(
void
*
)
-
1
;
// No need for locking, because this is thread local.
// No need for locking, because this is thread local.
if
(
thread_data_available
)
{
if
(
thread_data_available
)
{
thread_data_available
=
false
;
thread_data_available
=
false
;
#ifdef HAVE_ALIGNED_STORAGE
#ifdef HAVE_ALIGNED_STORAGE
data_
=
new
(
&
thread_msg_data
)
LogMessageData
;
data_
=
new
(
&
thread_msg_data
)
LogMessageData
;
#else
#else
const
uintptr_t
kAlign
=
sizeof
(
void
*
)
-
1
;
char
*
align_ptr
=
char
*
align_ptr
=
reinterpret_cast
<
char
*>
(
reinterpret_cast
<
uintptr_t
>
(
thread_msg_data
+
kAlign
)
&
~
kAlign
);
reinterpret_cast
<
char
*>
(
reinterpret_cast
<
uintptr_t
>
(
thread_msg_data
+
kAlign
)
&
~
kAlign
);
data_
=
new
(
align_ptr
)
LogMessageData
;
data_
=
new
(
align_ptr
)
LogMessageData
;
...
...
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