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
3b9d55bd
Commit
3b9d55bd
authored
Oct 20, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typesafe_cb: 64 bit fixes.
In particular, gcc warns about cast from int to pointer.
parent
e93f8431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c
ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c
+2
-2
No files found.
ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c
View file @
3b9d55bd
...
...
@@ -6,7 +6,7 @@ static void _set_some_value(void *val)
}
#define set_some_value(expr) \
_set_some_value(cast_if_type(void *, (expr), (expr),
int
))
_set_some_value(cast_if_type(void *, (expr), (expr),
long
))
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
#error "Unfortunately we don't fail if cast_if_type is a noop."
#endif
#else
int
x
=
0
;
long
x
=
0
;
#endif
set_some_value
(
x
);
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