[haiku-bugs] Re: [Haiku] #12778: [Patch] acpica: fix gcc6 warnings

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Wed, 08 Feb 2017 14:44:28 -0000

#12778: [Patch] acpica: fix gcc6 warnings
-------------------------+-------------------------------------------------
   Reporter:  mt         |      Owner:  tqh
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  Unscheduled
  Component:             |    Version:  R1/Development
  Drivers/ACPI           |   Keywords:  add-
 Resolution:             |  ons/kernel/bus_managers/acpi/acpica
 Blocked By:             |   Blocking:
Has a Patch:  1          |   Platform:  All
-------------------------+-------------------------------------------------

Comment (by korli):

 @tqh AcpiGbl_GlobalLockSemaphore is a sem_id on Haiku, assigning it to
 NULL, results in this warning.
 https://github.com/haiku/haiku/blob/master/src/add-
 ons/kernel/bus_managers/acpi/acpica/include/platform/achaiku.h#L136

 IMO ACPI_SEMAPHORE shall be a void*, and each function in ACPICAHaiku.cpp
 can cast to addr_t/sem_id.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12778#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: