mborgerson
Well-known member
These warnings started popping up in my generic data logger code after the install of Teenysduino 1.52. I finally tracked down the source of these warnings to the fact that SDFat 2.0b includes the fcntl.h header when SDFat is compiled. For the Teensy or other ARM CPUs, the USE_FCNTL_H variable in SDConfig.h is set to one so that some extended file opening #defines are included. The problem lies in the fact that, inside the ARM libraries, fcntl.h includes a call to Time.h. That generates the warning.
Apparently, the GCC libraries in the latests Teensyduino install still include and use Time.h. Will this still be the case with future versions of the ARM libraries?
I found that my logger code did not require the additional file opening options, so I just set USE_FCNTL_H to zero in SDConfig.h. My code seems to run fine without the extra #defines.
Apparently, the GCC libraries in the latests Teensyduino install still include and use Time.h. Will this still be the case with future versions of the ARM libraries?
I found that my logger code did not require the additional file opening options, so I just set USE_FCNTL_H to zero in SDConfig.h. My code seems to run fine without the extra #defines.