Commit f27c9672 authored by Joey Adams's avatar Joey Adams Committed by Rusty Russell

cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable

parent a89ccb89
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......@@ -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;
}
......@@ -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;
}
......@@ -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;
}
......@@ -31,5 +31,6 @@ int main(int argc, char *argv[])
struct child,
#endif
list);
(void) c; /* Suppress unused-but-set-variable warning. */
return 0;
}
......@@ -31,5 +31,6 @@ int main(int argc, char *argv[])
struct child,
#endif
list);
(void) c; /* Suppress unused-but-set-variable warning. */
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment