Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
c896c8f8
Commit
c896c8f8
authored
Sep 08, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added attribute unused
parent
49b5a263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.travis.yml
.travis.yml
+1
-1
event-old.h
event-old.h
+3
-0
No files found.
.travis.yml
View file @
c896c8f8
...
...
@@ -9,7 +9,7 @@ install:
-
sudo apt-get install libreadline6-dev
-
sudo apt-get install libssl-dev
-
sudo apt-get install liblua5.2-dev lua5.2
-
sudo apt-get install libevent-dev
=1.4.13-stable-1
-
sudo apt-get install libevent-dev
script
:
-
./configure
...
...
event-old.h
View file @
c896c8f8
...
...
@@ -3,6 +3,7 @@
typedef
int
evutil_socket_t
;
static
inline
struct
event
*
event_new
(
struct
event_base
*
base
,
int
fd
,
int
what
,
void
(
*
callback
)(
int
,
short
,
void
*
),
void
*
arg
)
__attribute__
((
unused
));
static
inline
struct
event
*
event_new
(
struct
event_base
*
base
,
int
fd
,
int
what
,
void
(
*
callback
)(
int
,
short
,
void
*
),
void
*
arg
)
{
struct
event
*
ev
=
malloc
(
sizeof
(
*
ev
));
event_set
(
ev
,
fd
,
what
,
callback
,
arg
);
...
...
@@ -10,6 +11,7 @@ static inline struct event *event_new (struct event_base *base, int fd, int what
return
ev
;
}
static
inline
struct
event
*
evtimer_new
(
struct
event_base
*
base
,
void
(
*
callback
)(
int
,
short
,
void
*
),
void
*
arg
)
__attribute__
((
unused
));
static
inline
struct
event
*
evtimer_new
(
struct
event_base
*
base
,
void
(
*
callback
)(
int
,
short
,
void
*
),
void
*
arg
)
{
struct
event
*
ev
=
malloc
(
sizeof
(
*
ev
));
event_set
(
ev
,
-
1
,
0
,
callback
,
arg
);
...
...
@@ -17,6 +19,7 @@ static inline struct event *evtimer_new (struct event_base *base, void(*callback
return
ev
;
}
static
void
event_free
(
struct
event
*
ev
)
__attribute__
((
unused
));
static
void
event_free
(
struct
event
*
ev
)
{
event_del
(
ev
);
free
(
ev
);
...
...
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