[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: |
Fri, 21 Nov 2014 01:36:49 -0800 |
Branch: refs/heads/master
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
Commit: 5893091ea7fa8be6f0caa0ea2f1b12b1acf6f9aa
https://github.com/paparazzi/paparazzi/commit/5893091ea7fa8be6f0caa0ea2f1b12b1acf6f9aa
Author: Felix Ruess <address@hidden>
Date: 2014-11-21 (Fri, 21 Nov 2014)
Changed paths:
M sw/airborne/peripherals/mpu60x0_i2c.c
M sw/airborne/peripherals/mpu60x0_spi.c
M sw/airborne/peripherals/mpu9250_i2c.c
M sw/airborne/peripherals/mpu9250_spi.c
Log Message:
-----------
Merge pull request #946 from paparazzi/mpu60x0_ignore_cast_warning
[peripherals] mpuxxxx: 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
Compare:
https://github.com/paparazzi/paparazzi/compare/b474c5e126ed...5893091ea7fa