All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gix, Brian" <brian.gix@intel.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Build Warnings, BlueZ TIP, Fedora-30
Date: Wed, 8 May 2019 19:21:26 +0000	[thread overview]
Message-ID: <1557343285.14401.4.camel@intel.com> (raw)

These 3 new build warnings showed up when I upgraded one of my devices to Fedora 30.

They are all in the Android subtree.


$ gcc --version
gcc (GCC) 9.1.1 20190503 (Red Hat 9.1.1-1)

$ uname -a
Linux bgix-nuc-1.sea.intel.com 5.0.11-300.fc30.x86_64 #1 SMP Thu May 2 14:11:38 UTC 2019 x86_64 x86_64 x86_64
GNU/Linux

$ make -k
make --no-print-directory all-am
  CC       android/avrcp-lib.o
android/avrcp-lib.c: In function ‘get_element_attributes’:
android/avrcp-lib.c:967:27: error: taking address of packed member of ‘struct get_element_attributes_req’ may
result in an unaligned pointer value [-Werror=address-of-packed-member]
  967 |  if (!parse_attributes(req->attrs, params_len - sizeof(*req),
      |                        ~~~^~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:6578: android/avrcp-lib.o] Error 1
  CC       android/handsfree.o
android/handsfree.c: In function ‘bt_sco_get_fd’:
android/handsfree.c:2913:47: error: taking address of packed member of ‘struct sco_rsp_get_fd’ may result in an
unaligned pointer value [-Werror=address-of-packed-member]
 2913 |  if (!dev || !bt_sco_get_fd_and_mtu(sco, &fd, &rsp.mtu))
      |                                               ^~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:6578: android/handsfree.o] Error 1
  CC       android/bluetooth_default_la-hal-bluetooth.lo
android/hal-bluetooth.c: In function ‘set_adapter_property’:
android/hal-bluetooth.c:659:46: error: taking address of packed member of ‘struct hal_cmd_set_adapter_prop’ may
result in an unaligned pointer value [-Werror=address-of-packed-member]
  659 |  adapter_prop_from_hal(property, &cmd->type, &cmd->len, cmd->val);
      |                                              ^~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:6637: android/bluetooth_default_la-hal-bluetooth.lo] Error 1
make[1]: Target 'all-am' not remade because of errors.
make: *** [Makefile:3872: all] Error 2

             reply	other threads:[~2019-05-08 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08 19:21 Gix, Brian [this message]
2019-05-10  9:01 ` Build Warnings, BlueZ TIP, Fedora-30 Bastien Nocera
2019-05-10 16:15   ` Gix, Brian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1557343285.14401.4.camel@intel.com \
    --to=brian.gix@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.