Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compiler warning and add option to control systemd service file installation #291

Merged
merged 3 commits into from
Sep 28, 2016

Conversation

abhimanyuv1
Copy link
Contributor

No description provided.

1. fix type-punnned pointer warning

awalwm2m-0.2.4/core/src/common/lwm2m_tlv.c:344:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
         int32_t temp = htonl(*(uint32_t*)&f);

2. fix may be used uninitialized warning

daemon/src/server/lwm2m_server_xml_handlers.c: In function ‘xmlif_HandlerWriteRequest’:
daemon/src/server/lwm2m_server_xml_handlers.c:1781:5: error: ‘root’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     Lwm2mTreeNode_DeleteRecursive(root);
          ^

Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com>
install systemd service file only if WITH_SYSTEMD is enabled as
not all system will use systemd by default especially embedded
systems.

Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com>
@FlowM2MJenkinsCI
Copy link

Can one of the admins verify this patch?

@boyvinall
Copy link
Contributor

retest AWS CI (erbium)

@boyvinall
Copy link
Contributor

retest AWS CI (libcoap)

@boyvinall
Copy link
Contributor

@abhimanyuv1 sorry, could you re-merge please? thanks

@abhimanyuv1
Copy link
Contributor Author

hi matt, I had some comment in mail but cant find them here, if you want i can send 2 pull request for those patches?
also, i got these warning when i was creating buildroot packages and -Wall was enabled.

@abhimanyuv1 abhimanyuv1 reopened this Sep 28, 2016
@boyvinall
Copy link
Contributor

retest AWS CI (erbium)

@boyvinall
Copy link
Contributor

retest AWS CI (libcoap)

@boyvinall boyvinall merged commit 45cc4b7 into ConnectivityFoundry:master Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants