[Ovmsdev] Compiler warning

Mark Webb-Johnson mark at webb-johnson.net
Wed Jun 27 13:56:38 HKT 2018


I’m seeing this:

CXX build/ovms_webserver/src/ovms_webserver.o
/Users/mark/Documents/ovms/Open-Vehicle-Monitoring-System-3.1/vehicle/OVMS.V3/components/ovms_webserver/src/ovms_webserver.cpp: In member function 'user_session* OvmsWebServer::CreateSession(const http_message*)':
/Users/mark/Documents/ovms/Open-Vehicle-Monitoring-System-3.1/vehicle/OVMS.V3/components/ovms_webserver/src/ovms_webserver.cpp:665:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   s->id = *((uint64_t *) digest);
                                ^
Michael: Can you have a look?

Thanks, Mark.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180627/4955a0fb/attachment.html>


More information about the OvmsDev mailing list