Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
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
brpc
Commits
d10dce1c
Commit
d10dce1c
authored
Feb 14, 2019
by
Zhangyi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the issue that weak annotation didn't work
parent
16e57f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dynamic_annotations.c
...til/third_party/dynamic_annotations/dynamic_annotations.c
+1
-1
No files found.
src/butil/third_party/dynamic_annotations/dynamic_annotations.c
View file @
d10dce1c
...
...
@@ -255,7 +255,7 @@ static int GetRunningOnValgrind(void) {
}
/* See the comments in dynamic_annotations.h */
int
DYNAMIC_ANNOTATIONS_ATTRIBUTE_WEAK
RunningOnValgrind
(
void
)
{
int
__attribute__
((
weak
))
RunningOnValgrind
(
void
)
{
static
volatile
int
running_on_valgrind
=
-
1
;
/* C doesn't have thread-safe initialization of statics, and we
don't want to depend on pthread_once here, so hack it. */
...
...
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