mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV:treewide:string assigned to const object
In the hypervisor, some strings are assigned to non const object, this violates MISRA C:2012. Update the type of the object as const type since it always points to string. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#define ASSERT_H
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
void __assert(uint32_t line, const char *file, char *txt);
|
||||
void __assert(uint32_t line, const char *file, const char *txt);
|
||||
|
||||
#define ASSERT(x, ...) \
|
||||
if (!(x)) {\
|
||||
|
Reference in New Issue
Block a user