test: avoid compile warnings in test_cmdline()

When building for "make check" with optimization, gcc emits warning

  variable ‘argc’ might be clobbered by ‘longjmp’ or ‘vfork’

for local variables argc, argv, orig_stdout_fd and orig_stderr_fd in
test_cmdline(). Declaring these variables volatile is the easiest way to
avoid this warning.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
1 file changed