Eitan Adler <ead...@freebsd.org> writes:

> Author: eadler
> Date: Fri Oct 26 02:50:16 2012
> New Revision: 242120
> URL: http://svn.freebsd.org/changeset/base/242120
>
> Log:
>   This utility builds without NO_WCAST_ALIGN

Not for clang. It probably predates NO_WCAST_ALIGN.clang= support.

intel.c:66:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[0] = idargs.data[1];
         ^~~~~~~~~~~~~~~~~~
intel.c:67:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[1] = idargs.data[3];
         ^~~~~~~~~~~~~~~~~~
intel.c:68:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[2] = idargs.data[2];
         ^~~~~~~~~~~~~~~~~~
intel.c:211:7: warning: cast from 'char *' to 'intel_ext_header_t *' (aka 
'struct
      intel_ext_header *') increases required alignment from 1 to 4 
[-Wcast-align]
                    (intel_ext_header_t *)((char *)fw_image + payload_size);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
amd.c:64:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[0] = idargs.data[1];
         ^~~~~~~~~~~~~~~~~~
amd.c:65:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[1] = idargs.data[3];
         ^~~~~~~~~~~~~~~~~~
amd.c:66:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[2] = idargs.data[2];
         ^~~~~~~~~~~~~~~~~~
via.c:64:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[0] = idargs.data[1];
         ^~~~~~~~~~~~~~~~~~
via.c:65:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[1] = idargs.data[3];
         ^~~~~~~~~~~~~~~~~~
via.c:66:3: warning: cast from 'char *' to 'uint32_t *' (aka 'unsigned int *')
      increases required alignment from 1 to 4 [-Wcast-align]
        ((uint32_t *)vendor)[2] = idargs.data[2];
         ^~~~~~~~~~~~~~~~~~
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to