diff options
author | Toomas Soome <tsoome@me.com> | 2021-03-18 16:27:28 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2021-03-19 20:59:42 +0200 |
commit | c96f32ae7ef73b9db2b9b81e2e1e2b206795d024 (patch) | |
tree | ba225223945504418f38d1028545ac31d6c41710 | |
parent | 1d5eda342f972d3bf9b3bec5dc9d1103beb74cb7 (diff) | |
download | illumos-joyent-c96f32ae7ef73b9db2b9b81e2e1e2b206795d024.tar.gz |
13649 stackalign: unused variables
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
-rw-r--r-- | usr/src/test/os-tests/tests/stackalign/stackalign.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/test/os-tests/tests/stackalign/stackalign.c b/usr/src/test/os-tests/tests/stackalign/stackalign.c index 2ad77ea39d..558f19c664 100644 --- a/usr/src/test/os-tests/tests/stackalign/stackalign.c +++ b/usr/src/test/os-tests/tests/stackalign/stackalign.c @@ -83,6 +83,13 @@ char door_arg[] = "DOOR ARG"; int main(int argc, char *argv[]) { +#if defined(__sparc) + /* + * This hasn't been implemented for SPARC, so skip. + */ + fprintf(stderr, "No SPARC implementation of get_stack_at_entry\n"); + return (3); +#else door_arg_t da = { .data_ptr = (void *)door_arg, .data_size = sizeof (door_arg) @@ -95,13 +102,6 @@ main(int argc, char *argv[]) pthread_t tid; int door_fd, rc; -#if defined(__sparc) - /* - * This hasn't been implemented for SPARC, so skip. - */ - fprintf(stderr, "No SPARC implementation of get_stack_at_entry\n"); - return (3); -#else if (pthread_create(&tid, NULL, (void *(*)(void *))get_stack_at_entry, &arg) != 0) { perror("pthread_create() failed:"); |