[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/paparazzi] 3931f3: [peripherals] mpu60x0:
From: |
GitHub |
Subject: |
[paparazzi-commits] [paparazzi/paparazzi] 3931f3: [peripherals] mpu60x0: use gcc pragma to ignore ca... |
Date: |
Thu, 13 Nov 2014 08:36:36 -0800 |
Branch: refs/heads/mpu60x0_ignore_cast_warning
Home: https://github.com/paparazzi/paparazzi
Commit: 3931f35f6c4d357300197574d83fb406f583a35d
https://github.com/paparazzi/paparazzi/commit/3931f35f6c4d357300197574d83fb406f583a35d
Author: Felix Ruess <address@hidden>
Date: 2014-11-13 (Thu, 13 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/paparazzi] 3931f3: [peripherals] mpu60x0: use gcc pragma to ignore ca...,
GitHub <=