mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +03:00
Remove unused variables
Declare float type conditionally to not declare them conditionally when they are not used.
This commit is contained in:
parent
ee06ef9dd3
commit
66d992d883
@ -23,8 +23,10 @@
|
||||
#ifdef TARGET_DEFS_ONLY
|
||||
|
||||
#ifdef TCC_ARM_EABI
|
||||
#ifndef TCC_ARM_VFP // Avoid useless warning
|
||||
#define TCC_ARM_VFP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* number of available registers */
|
||||
#ifdef TCC_ARM_VFP
|
||||
@ -100,8 +102,10 @@ enum {
|
||||
//#define FUNC_STRUCT_PARAM_AS_PTR
|
||||
|
||||
#if defined(TCC_ARM_EABI) && defined(TCC_ARM_VFP)
|
||||
#ifdef NEED_FLOAT_TYPES
|
||||
static CType float_type, double_type, func_float_type, func_double_type;
|
||||
#define func_ldouble_type func_double_type
|
||||
#endif
|
||||
#else
|
||||
#define func_float_type func_old_type
|
||||
#define func_double_type func_old_type
|
||||
|
Loading…
Reference in New Issue
Block a user