<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><blockquote type="cite" class=""><div bgcolor="#FFFFFF" text="#000000" class="">where does your -Wstrict-aliasing option come from?</div></blockquote><div class=""><br class=""></div>No idea. I don’t see that on the gcc command line.<div class=""><br class=""></div><div class="">Maybe there in debug or release builds? (I see a comment in the documentation about it being triggered by an optimization level of -O2 or higher or -Os)</div><div class=""><br class=""></div><div class="">Regards, Mark.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 28 Jun 2018, at 2:54 AM, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    I always eliminate all warnings in my code, and I don't get any
    warning now. Mark, where does your -Wstrict-aliasing option come
    from? My build doesn't set that.<br class="">
    <br class="">
    The warning makes sense though → fixed.<br class="">
    <br class="">
    Regards,<br class="">
    Michael<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 27.06.2018 um 07:56 schrieb Mark
      Webb-Johnson:<br class="">
    </div>
    <blockquote type="cite" cite="mid:C9B1E35B-FB77-445C-A70E-6BA33669D725@webb-johnson.net" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      I’m seeing this:
      <div class=""><br class="">
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">
          <div class="">CXX build/ovms_webserver/src/ovms_webserver.o</div>
          <div class="">/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*)':</div>
          <div class="">/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]</div>
          <div class="">   s->id = *((uint64_t *) digest);</div>
          <div class="">                                ^</div>
        </div>
      </blockquote>
      <div class="">Michael: Can you have a look?</div>
      <div class=""><br class="">
      </div>
      <div class="">Thanks, Mark.</div>
      <div class=""><br class="">
      </div>
      <!--'"--><br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br class="">
    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </div>

_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>