mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
Silence CLangs warnings so -DWARNING_AS_ERROR does not break the build under OS X
This commit is contained in:
parent
96d9ae4776
commit
7f1dea6129
2 changed files with 10 additions and 2 deletions
|
@ -21,8 +21,11 @@
|
|||
#ifndef _DEFINITIONS_H_
|
||||
#define _DEFINITIONS_H_
|
||||
|
||||
#if defined(SIMU)
|
||||
#define __ALIGNED
|
||||
#if defined(SIMU) && __GNUC__
|
||||
#define __ALIGNED __attribute__((aligned(32)))
|
||||
#define __SECTION_USED(s) __attribute__((used))
|
||||
#elif defined(SIMU)
|
||||
#define __ALIGNED
|
||||
#define __SECTION_USED(s)
|
||||
#else
|
||||
#define __ALIGNED __attribute__((aligned(32)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue