Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
b7c94538
Commit
b7c94538
authored
Feb 24, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fix warnings from Ubuntu strict compiler.
parent
729fc5b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
tools/ccanlint/compulsory_tests/run_tests.c
tools/ccanlint/compulsory_tests/run_tests.c
+5
-1
tools/ccanlint/tests/run_tests_valgrind.c
tools/ccanlint/tests/run_tests_valgrind.c
+5
-1
No files found.
tools/ccanlint/compulsory_tests/run_tests.c
View file @
b7c94538
...
...
@@ -104,6 +104,9 @@ static const char *describe_run_tests(struct manifest *m,
return
descrip
;
}
/* Gcc's warn_unused_result is fascist bullshit. */
#define doesnt_matter()
static
void
run_under_debugger
(
struct
manifest
*
m
,
void
*
check_result
)
{
char
*
command
;
...
...
@@ -116,7 +119,8 @@ static void run_under_debugger(struct manifest *m, void *check_result)
first
=
list_top
(
list
,
struct
run_tests_result
,
list
);
command
=
talloc_asprintf
(
m
,
"gdb -ex 'break tap.c:136' -ex 'run' %s"
,
first
->
file
->
compiled
);
system
(
command
);
if
(
system
(
command
))
doesnt_matter
();
}
struct
ccanlint
run_tests
=
{
...
...
tools/ccanlint/tests/run_tests_valgrind.c
View file @
b7c94538
...
...
@@ -107,6 +107,9 @@ static const char *describe_run_tests_vg(struct manifest *m,
return
descrip
;
}
/* Gcc's warn_unused_result is fascist bullshit. */
#define doesnt_matter()
static
void
run_under_debugger_vg
(
struct
manifest
*
m
,
void
*
check_result
)
{
struct
list_head
*
list
=
check_result
;
...
...
@@ -119,7 +122,8 @@ static void run_under_debugger_vg(struct manifest *m, void *check_result)
first
=
list_top
(
list
,
struct
run_tests_result
,
list
);
command
=
talloc_asprintf
(
m
,
"valgrind --db-attach=yes %s"
,
first
->
file
->
compiled
);
system
(
command
);
if
(
system
(
command
))
doesnt_matter
();
}
struct
ccanlint
run_tests_vg
=
{
...
...
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