git: 07d3738b82b6 - main - soxstack: silence GCC warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Aug 2023 01:15:37 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=07d3738b82b6e064288cb1d630a3bde611e30819 commit 07d3738b82b6e064288cb1d630a3bde611e30819 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2023-08-09 01:13:20 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-08-09 01:15:19 +0000 soxstack: silence GCC warning Add parens around _STACK_FLAG_GROWS expression to fix GCC warning about arithmetic in operand of '|'. Sponsored by: The FreeBSD Foundation --- tests/sys/vm/soxstack/soxstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/vm/soxstack/soxstack.c b/tests/sys/vm/soxstack/soxstack.c index fe3eb1c03a29..ac7c9cf03746 100644 --- a/tests/sys/vm/soxstack/soxstack.c +++ b/tests/sys/vm/soxstack/soxstack.c @@ -16,7 +16,7 @@ int checkstack(void); -#define _STACK_FLAG_GROWS KVME_FLAG_GROWS_UP | KVME_FLAG_GROWS_DOWN +#define _STACK_FLAG_GROWS (KVME_FLAG_GROWS_UP | KVME_FLAG_GROWS_DOWN) int checkstack(void) {