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:
@@ -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; \
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user