[Ovmsdev] Macros MIN and MAX

Stephen Casner casner at acm.org
Fri Jan 5 06:31:27 HKT 2018


Michael,

Attached is the compilation log with v3.0 so you can see the include
chain.  Certainly this can be managed with #ifndef / #undef; I added
#undef temporarily to make the warnings go away, but I thought there
might be a cleaner solution.

I'm exploring v3.0 at Mark's request so that we may be able to include
the hardware module with additional RAM.  My first step was just to
work out the compilation issues.  My task is to figure out how to
implement or replace the "module memory" and "module tasks" commands
that I implemented before with extra code added to esp-idf.  I have
not explored the SD card issues, but Mark has reported earlier on his
tests with v3.0 and the alternative hardware module.

                                                        -- Steve

On Thu, 4 Jan 2018, Michael Balzer wrote:

> Stephen,
>
> sys/param.h was not included previously. As the definitions match, I
> can use those. Or add an #ifndef / #undef.
>
> As you're compiling with v3 already: are the SD card issues solved
> with that release?
>
> Regards,
> Michael
>
>
> Am 04.01.2018 um 22:01 schrieb Stephen Casner:
> > Michael and Geir,
> >
> > Can you please see whether the definitions of MIN and MAX in your
> > files are needed?  These macros are defined in:
> >
> > esp-idf/components/newlib/include/sys/param.h
> >
> > which gets included from ovms_config.h and perhaps other places.
> >
> > When I'm compiling with release v3.0 the redefinition of these macros
> > shows up as a warning.  It would be possible to ignore the warning and
> > it might also be possible to turn off the warnings by changing the
> > configuration, but if the definitions are not needed this would be
> > cleaner.
> >
> >                                                         -- Steve
> > _______________________________________________
> > OvmsDev mailing list
> > OvmsDev at lists.teslaclub.hk
> > http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>
> --
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
-*- mode: compilation; default-directory: "~/src/github/ovms/vehicle/OVMS.V3/" -*-
Compilation started at Thu Jan  4 13:11:02

cd ~/src/github/ovms/vehicle/OVMS.V3; source ~/src/github/esp-idf/setpath ; make -k 
CXX build/main/ovms_buffer.o
AR build/main/libmain.a
CXX build/vehicle_kiasoulev/src/vehicle_kiasoulev.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.cpp:107:0:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.h:214:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.h:32,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.cpp:107:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.cpp:107:0:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.h:215:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.h:32,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_kiasoulev/src/vehicle_kiasoulev.cpp:107:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
AR build/vehicle_kiasoulev/libvehicle_kiasoulev.a
CXX build/vehicle_renaulttwizy/src/rt_battmon.o
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: warning: "MAX" redefined
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.h:30:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.cpp:31:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: note: this is the location of the previous definition
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: warning: "MIN" redefined
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.h:30:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_battmon.cpp:31:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: note: this is the location of the previous definition
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
CXX build/vehicle_renaulttwizy/src/rt_can.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_can.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_can.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_can.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_can.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_charge.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_charge.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_charge.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_charge.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_charge.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_notify.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_notify.cpp:41:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_notify.cpp:36:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_notify.cpp:41:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_notify.cpp:36:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_pwrmon.o
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.cpp:34:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: warning: "MAX" redefined
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.h:30:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.cpp:31:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: note: this is the location of the previous definition
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.cpp:34:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: warning: "MIN" redefined
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.h:30:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_pwrmon.cpp:31:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: note: this is the location of the previous definition
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
CXX build/vehicle_renaulttwizy/src/rt_sevcon.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon.cpp:38:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon.cpp:33:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon.cpp:38:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon.cpp:33:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_sevcon_faults.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon_faults.cpp:35:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon_faults.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon_faults.cpp:35:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle/./vehicle.h:38,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:30,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_sevcon_faults.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_ticker.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_ticker.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_ticker.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_ticker.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_ticker.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/rt_utils.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_utils.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_utils.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_utils.cpp:40:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_utils.cpp:35:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
CXX build/vehicle_renaulttwizy/src/vehicle_renaulttwizy.o
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.cpp:42:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:59:0: warning: "MIN" redefined
 #define MIN(n,m) ((n) < (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.cpp:37:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:26:0: note: this is the location of the previous definition
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 ^
In file included from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.h:37:0,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.cpp:42:
/Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/rt_types.h:60:0: warning: "MAX" redefined
 #define MAX(n,m) ((n) > (m) ? (n) : (m))
 ^
In file included from /Users/casner/src/github/esp-idf/components/fatfs/src/ffconf.h:1:0,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/ff.h:30,
                 from /Users/casner/src/github/esp-idf/components/fatfs/src/esp_vfs_fat.h:22,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/main/./ovms_config.h:37,
                 from /Users/casner/src/github/ovms/vehicle/OVMS.V3/components/vehicle_renaulttwizy/src/vehicle_renaulttwizy.cpp:37:
/Users/casner/src/github/esp-idf/components/newlib/include/sys/param.h:25:0: note: this is the location of the previous definition
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 ^
AR build/vehicle_renaulttwizy/libvehicle_renaulttwizy.a
LD build/ovms3.elf
esptool.py v2.1
To flash all build output, run 'make flash' or:
python /Users/casner/src/github/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /Users/casner/src/github/ovms/vehicle/OVMS.V3/build/bootloader/bootloader.bin 0x10000 /Users/casner/src/github/ovms/vehicle/OVMS.V3/build/ovms3.bin 0x8000 /Users/casner/src/github/ovms/vehicle/OVMS.V3/build/partitions.bin

Compilation finished at Thu Jan  4 13:11:23


More information about the OvmsDev mailing list