kernel: Drop non-standard GNU inline assignment syntax

* We needed this previously due to our gcc2 compiled kernel.
* Now that our kernel is always latest gcc, we can move to the
  c++20 syntax for inline assignment.
* Improves compatibility with clang, less GNU-specific stuff

Change-Id: Ib7272a0a52554a31e9a0e788fd3f031db9049795
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5898
Reviewed-by: Alex von Gluck IV <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
X512
2022-12-13 20:49:53 +00:00
committed by Alex von Gluck IV
parent 67d20a5856
commit 215b685f7f
60 changed files with 291 additions and 294 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ typedef struct err_res {
} err_res;
#define MK_ERROR( aaction, code ) ({ \
err_res _res = {error_code: (code), action: (aaction) }; \
err_res _res = {.error_code = (code), .action = (aaction) }; \
_res; \
})