History

Remove unused variables

Declare float type conditionally to not declare them conditionally when they are not used.

Thomas Preud'homme committed 15 years ago

Commit 66d992d1 parent ee06ef92 files · +5 −0Browse files

Unified · Split

2 files
  1. arm-gen.c +4 −0
  2. libtcc.c +1 −0
arm-gen.c+4−0
@@ -23,8 +23,10 @@ · 22 unmodified lines
2323 #ifdef TARGET_DEFS_ONLY
2424
2525 #ifdef TCC_ARM_EABI
26+#ifndef TCC_ARM_VFP // Avoid useless warning
2627 #define TCC_ARM_VFP
2728 #endif
29+#endif
2830
2931 /* number of available registers */
3032 #ifdef TCC_ARM_VFP
@@ -100,8 +102,10 @@ enum { · 69 unmodified lines
100102 //#define FUNC_STRUCT_PARAM_AS_PTR
101103
102104 #if defined(TCC_ARM_EABI) && defined(TCC_ARM_VFP)
105+#ifdef NEED_FLOAT_TYPES
103106 static CType float_type, double_type, func_float_type, func_double_type;
104107 #define func_ldouble_type func_double_type
108+#endif
105109 #else
106110 #define func_float_type func_old_type
107111 #define func_double_type func_old_type
libtcc.c+1−0
@@ -18,6 +18,7 @@ · 17 unmodified lines
1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1919 */
2020
21+#define NEED_FLOAT_TYPES
2122 #include "tcc.h"
2223
2324 /********************************************************/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t