Wireshark mailing list archives

cast errors reported by a OsX cmake build


From: Dirk Jagdmann <doj () cubic org>
Date: Mon, 17 Jun 2013 17:22:41 -0700

I just tried to use cmake to build current Wireshark SVN trunk source code. It fails early on with errors like:


[  5%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o
/Users/djagdmann/ws-trunk/trunk/tools/lemon/lemon.c:443:8: error: cast from 'char *' to 'struct action *' increases required
      alignment from 1 to 8 [-Werror,-Wcast-align]
  ap = (struct action *)msort((char *)ap,(char **)&ap->next,
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/djagdmann/ws-trunk/trunk/tools/lemon/lemon.c:457:24: error: cast from 'char *' to 'struct state *' increases required
      alignment from 1 to 8 [-Werror,-Wcast-align]
    newaction->x.stp = (struct state *)arg;

and many more of this type. Is somebody looking into cmake builds on OsX?

--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: