paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [paparazzi/paparazzi] fadb06: [peripherals] mpu60x0:


From: GitHub
Subject: [paparazzi-commits] [paparazzi/paparazzi] fadb06: [peripherals] mpu60x0: use gcc pragma to ignore ca...
Date: Tue, 18 Nov 2014 01:07:00 -0800

  Branch: refs/heads/mpu60x0_ignore_cast_warning
  Home:   https://github.com/paparazzi/paparazzi
  Commit: fadb06771f582db22eec14f09f0e6a9fe44cac71
      
https://github.com/paparazzi/paparazzi/commit/fadb06771f582db22eec14f09f0e6a9fe44cac71
  Author: Felix Ruess <address@hidden>
  Date:   2014-11-18 (Tue, 18 Nov 2014)

  Changed paths:
    M sw/airborne/peripherals/mpu60x0_i2c.c
    M sw/airborne/peripherals/mpu60x0_spi.c

  Log Message:
  -----------
  [peripherals] mpu60x0: use gcc pragma to ignore cast-qual warnings

The buffer is volatile, since filled from ISR...
But we know it's ok to use it here so we silence the warning.

Also there is a bug in some gcc version that incorrectly reports this as
peripherals/mpu60x0_spi.c:118:33: warning: cast discards 
'__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55383


  Commit: b17322ecd58151381dda063f76d10528ee2efbed
      
https://github.com/paparazzi/paparazzi/commit/b17322ecd58151381dda063f76d10528ee2efbed
  Author: Gautier Hattenberger <address@hidden>
  Date:   2014-11-18 (Tue, 18 Nov 2014)

  Changed paths:
    M sw/airborne/peripherals/mpu9250_i2c.c
    M sw/airborne/peripherals/mpu9250_spi.c

  Log Message:
  -----------
  [peripherals] ignore cast-qual for mpu9250 as well


Compare: 
https://github.com/paparazzi/paparazzi/compare/3931f35f6c4d...b17322ecd581

reply via email to

[Prev in Thread] Current Thread [Next in Thread]