1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

initial attempt at gcc 8

This commit is contained in:
Jonathan Hudson 2018-05-05 21:05:56 +01:00
parent 9f353355ac
commit d91a9a1176
2 changed files with 6 additions and 6 deletions

View file

@ -91,7 +91,7 @@ static inline uint8_t __basepriSetRetVal(uint8_t prio)
// ideally this would only protect memory passed as parameter (any type should work), but gcc is currently creating almost full barrier
// this macro can be used only ONCE PER LINE, but multiple uses per block are fine
#if (__GNUC__ > 7)
#if (__GNUC__ > 8)
#warning "Please verify that ATOMIC_BARRIER works as intended"
// increment version number is BARRIER works
// TODO - use flag to disable ATOMIC_BARRIER and use full barrier instead

View file

@ -750,15 +750,15 @@ class Generator
stderr.scan(/var_(\d+).*?', which is of non-class type '(.*)'/).each do |m|
member = members[m[0].to_i]
case m[1]
when "int8_t {aka signed char}"
when /^int8_t/ # {aka signed char}"
typ = "int8_t"
when "uint8_t {aka unsigned char}"
when /^uint8_t/ # {aka unsigned char}"
typ = "uint8_t"
when "int16_t {aka short int}"
when /^int16_t/ # {aka short int}"
typ = "int16_t"
when "uint16_t {aka short unsigned int}"
when /^uint16_t/ # {aka short unsigned int}"
typ = "uint16_t"
when "uint32_t {aka long unsigned int}"
when /^uint32_t/ # {aka long unsigned int}"
typ = "uint32_t"
when "float"
typ = "float"