+3146. [test] Fixed gcc4.6.0 errors in ATF. [RT #25598]
+
--- 9.9.0a1 released ---
3145. [test] Capture output of ATF unit tests in "./atf.out" if
char *const argv[] = { arg1, arg2, arg3, arg4, NULL };
int ch;
- bool zflag;
// Given that this obviously is an application, and that we used the
// same driver to start, we can test getopt(3) right here without doing
// any fancy stuff.
- zflag = false;
while ((ch = ::getopt(argc, argv, ":Z")) != -1) {
switch (ch) {
case 'Z':
- zflag = true;
break;
case '?':
const atf_fs_path_t *dir)
{
atf_error_t err;
- const char *workdir;
r->pimpl = malloc(sizeof(struct atf_check_result_impl));
if (r->pimpl == NULL)
return atf_no_memory_error();
- workdir = atf_config_get("atf_workdir");
+ (void) atf_config_get("atf_workdir");
err = array_to_list(argv, &r->pimpl->m_argv);
if (atf_is_error(err))
{
struct capture_stream *s = v;
- bool eof;
switch (s->m_base.m_type) {
case stdout_type:
- eof = read_line(atf_process_child_stdout(c), &s->m_msg);
+ (void) read_line(atf_process_child_stdout(c), &s->m_msg);
break;
case stderr_type:
- eof = read_line(atf_process_child_stderr(c), &s->m_msg);
+ (void) read_line(atf_process_child_stderr(c), &s->m_msg);
break;
default:
UNREACHABLE;
char *const argv[] = { arg1, arg2, arg3, arg4, NULL };
int ch;
- bool zflag;
/* Given that this obviously is a test program, and that we used the
* same driver to start, we can test getopt(3) right here without doing
* any fancy stuff. */
- zflag = false;
while ((ch = getopt(argc, argv, ":Z")) != -1) {
switch (ch) {
case 'Z':
- zflag = true;
break;
case '?':