diff --git a/utils/filemgmt_libn/include/n_error.h b/utils/filemgmt_libn/include/n_error.h index 87fb2cce582818e2917dc46b13624a7039100c11..49079ddcc7d27695658947160853f5a629f83aca 100644 --- a/utils/filemgmt_libn/include/n_error.h +++ b/utils/filemgmt_libn/include/n_error.h @@ -131,7 +131,7 @@ enum CommonErrCode { E_OSNOTSUPPORT = 901 }; -const std::unordered_map> errCodeTable { +static inline std::unordered_map> errCodeTable { { ERRNO_NOERR, { ERRNO_NOERR, "No error imformation" } }, { EPERM, { FILEIO_SYS_CAP_TAG + E_PERM, "Operation not permitted" } }, { ENOENT, { FILEIO_SYS_CAP_TAG + E_NOENT, "No such file or directory" } },