/home/pi/labsdk-RP/client/c/libs/kaa/src/extensions/profile/kaa_profile.c: In function ‘kaa_profile_manager_is_profile_set’:
/home/pi/labsdk-RP/client/c/libs/kaa/src/extensions/profile/kaa_profile.c:195:64: warning: unused parameter ‘self’ [-Wunused-parameter]
bool kaa_profile_manager_is_profile_set(kaa_profile_manager_t *self)
^
/home/pi/labsdk-RP/client/c/libs/kaa/src/extensions/profile/kaa_profile.c: In function ‘kaa_profile_manager_update_profile’:
/home/pi/labsdk-RP/client/c/libs/kaa/src/extensions/profile/kaa_profile.c:394:71: warning: unused parameter ‘self’ [-Wunused-parameter]
kaa_error_t kaa_profile_manager_update_profile(kaa_profile_manager_t *self, kaa_profile_t *profile_body)
^
/home/pi/labsdk-RP/client/c/libs/kaa/src/extensions/profile/kaa_profile.c:394:92: warning: unused parameter ‘profile_body’ [-Wunused-parameter]
kaa_error_t kaa_profile_manager_update_profile(kaa_profile_manager_t *self, kaa_profile_t *profile_body)
想就这些错误寻求帮助?对于 195:64
bool kaa_profile_manager_is_profile_set(kaa_profile_manager_t *self)
{
#if KAA_PROFILE_SCHEMA_VERSION > 0
return self->profile_body.buffer != NULL && self->profile_body.size != 0;
#else
return true;
#endif
}
对于 394 : 71
kaa_error_t kaa_profile_manager_update_profile(kaa_profile_manager_t *self, kaa_profile_t *profile_body)
{
#if KAA_PROFILE_SCHEMA_VERSION > 0
KAA_RETURN_IF_NIL2(self, profile_body, KAA_ERR_BADPARAM);
size_t serialized_profile_size = profile_body->get_size(profile_body);
if (!serialized_profile_size) {
KAA_LOG_ERROR(self->logger, KAA_ERR_BADDATA,
"Failed to update profile: serialize profile size is null. Maybe profile schema is empty");
return KAA_ERR_BADDATA;
}
对于 394 :
kaa_error_t kaa_profile_manager_update_profile(kaa_profile_manager_t *self, kaa_profile_t *profile_body)
{
#if KAA_PROFILE_SCHEMA_VERSION > 0
KAA_RETURN_IF_NIL2(self, profile_body, KAA_ERR_BADPARAM);
size_t serialized_profile_size = profile_body->get_size(profile_body);
if (!serialized_profile_size) {
KAA_LOG_ERROR(self->logger, KAA_ERR_BADDATA,
"Failed to update profile: serialize profile size is null. Maybe profile schema is empty");
return KAA_ERR_BADDATA;
}
想了解更多关于这些错误的信息,因为这些错误是默认生成的,并且使用演示应用程序,它工作得很好......