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
f27c9672
Commit
f27c9672
authored
May 28, 2011
by
Joey Adams
Committed by
Rusty Russell
May 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable
parent
a89ccb89
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
1 deletion
+15
-1
ccan/cast/test/compile_fail-cast_const.c
ccan/cast/test/compile_fail-cast_const.c
+1
-0
ccan/cast/test/compile_fail-cast_const2.c
ccan/cast/test/compile_fail-cast_const2.c
+1
-0
ccan/cast/test/compile_fail-cast_const3.c
ccan/cast/test/compile_fail-cast_const3.c
+1
-0
ccan/cast/test/compile_fail-cast_signed-const.c
ccan/cast/test/compile_fail-cast_signed-const.c
+1
-0
ccan/cast/test/compile_fail-cast_signed-sizesame.c
ccan/cast/test/compile_fail-cast_signed-sizesame.c
+1
-0
ccan/cast/test/compile_fail-cast_signed.c
ccan/cast/test/compile_fail-cast_signed.c
+1
-0
ccan/cast/test/compile_fail-cast_static-2.c
ccan/cast/test/compile_fail-cast_static-2.c
+1
-0
ccan/cast/test/compile_fail-cast_static-3.c
ccan/cast/test/compile_fail-cast_static-3.c
+1
-0
ccan/cast/test/compile_fail-cast_static.c
ccan/cast/test/compile_fail-cast_static.c
+1
-0
ccan/container_of/test/compile_fail-types.c
ccan/container_of/test/compile_fail-types.c
+1
-0
ccan/container_of/test/compile_fail-var-types.c
ccan/container_of/test/compile_fail-var-types.c
+1
-0
ccan/tlist/test/compile_fail-tlist_for_each.c
ccan/tlist/test/compile_fail-tlist_for_each.c
+2
-1
ccan/tlist/test/compile_fail-tlist_tail.c
ccan/tlist/test/compile_fail-tlist_tail.c
+1
-0
ccan/tlist/test/compile_fail-tlist_top.c
ccan/tlist/test/compile_fail-tlist_top.c
+1
-0
No files found.
ccan/cast/test/compile_fail-cast_const.c
View file @
f27c9672
...
...
@@ -18,6 +18,7 @@ int main(int argc, char *argv[])
*
p
=
NULL
;
uc
=
cast_const
(
char
*
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_const2.c
View file @
f27c9672
...
...
@@ -18,6 +18,7 @@ int main(int argc, char *argv[])
**
p
=
NULL
;
uc
=
cast_const2
(
char
**
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_const3.c
View file @
f27c9672
...
...
@@ -18,6 +18,7 @@ int main(int argc, char *argv[])
***
p
=
NULL
;
uc
=
cast_const3
(
char
***
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_signed-const.c
View file @
f27c9672
...
...
@@ -11,6 +11,7 @@ int main(int argc, char *argv[])
*
p
=
NULL
;
uc
=
cast_signed
(
unsigned
char
*
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_signed-sizesame.c
View file @
f27c9672
...
...
@@ -18,6 +18,7 @@ int main(int argc, char *argv[])
uc
=
cast_signed
(
unsigned
char
*
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_signed.c
View file @
f27c9672
...
...
@@ -12,5 +12,6 @@ int main(int argc, char *argv[])
*
p
=
NULL
;
uc
=
cast_signed
(
unsigned
char
*
,
p
);
(
void
)
uc
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
ccan/cast/test/compile_fail-cast_static-2.c
View file @
f27c9672
...
...
@@ -12,6 +12,7 @@ int main(int argc, char *argv[])
*
p
=
0
;
c
=
cast_static
(
char
*
,
p
);
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_static-3.c
View file @
f27c9672
...
...
@@ -10,6 +10,7 @@ int main(int argc, char *argv[])
char
*
p
=
0
;
c
=
cast_static
(
char
*
,
p
);
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
...
...
ccan/cast/test/compile_fail-cast_static.c
View file @
f27c9672
...
...
@@ -12,5 +12,6 @@ int main(int argc, char *argv[])
x
=
0
;
c
=
cast_static
(
char
,
x
);
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
ccan/container_of/test/compile_fail-types.c
View file @
f27c9672
...
...
@@ -17,5 +17,6 @@ int main(int argc, char *argv[])
#else
foop
=
NULL
;
#endif
(
void
)
foop
;
/* Suppress unused-but-set-variable warning. */
return
intp
==
NULL
;
}
ccan/container_of/test/compile_fail-var-types.c
View file @
f27c9672
...
...
@@ -20,5 +20,6 @@ int main(int argc, char *argv[])
#else
foop
=
NULL
;
#endif
(
void
)
foop
;
/* Suppress unused-but-set-variable warning. */
return
intp
==
NULL
;
}
ccan/tlist/test/compile_fail-tlist_for_each.c
View file @
f27c9672
...
...
@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
tlist_init
(
&
children
);
tlist_add
(
&
children
,
&
child
,
list
);
tlist_for_each
(
&
children
,
c
,
list
);
tlist_for_each
(
&
children
,
c
,
list
)
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
ccan/tlist/test/compile_fail-tlist_tail.c
View file @
f27c9672
...
...
@@ -31,5 +31,6 @@ int main(int argc, char *argv[])
struct
child
,
#endif
list
);
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
ccan/tlist/test/compile_fail-tlist_top.c
View file @
f27c9672
...
...
@@ -31,5 +31,6 @@ int main(int argc, char *argv[])
struct
child
,
#endif
list
);
(
void
)
c
;
/* Suppress unused-but-set-variable warning. */
return
0
;
}
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