Quick wondering... Usually I try to remove all warning from my programs and libraries...
But now when using the SD library I keep getting warning messages about including Time.h that should be replaced by TimeLib.h...
Problem is, the include of Time.h is in run time of the compiler...
Code:
"C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_CSI_41_OV7670_ILI.ino\\sketch\\CSI_41_OV7670_ILI.ino.cpp.o"
In file included from c:\arduino-1.8.13\hardware\tools\arm\arm-none-eabi\include\sys\stat.h:9:0,
from c:\arduino-1.8.13\hardware\tools\arm\arm-none-eabi\include\sys\_default_fcntl.h:188,
from c:\arduino-1.8.13\hardware\tools\arm\arm-none-eabi\include\sys\fcntl.h:4,
from c:\arduino-1.8.13\hardware\tools\arm\arm-none-eabi\include\fcntl.h:1,
from c:\arduino-1.8.13\hardware\teensy\avr\libraries\sdfat\src\common\fsapiconstants.h:30,
from C:\arduino-1.8.13\hardware\teensy\avr\libraries\SdFat\src/ExFatLib/ExFatFile.h:36,
from C:\arduino-1.8.13\hardware\teensy\avr\libraries\SdFat\src/ExFatLib/ExFatVolume.h:28,
from C:\arduino-1.8.13\hardware\teensy\avr\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,
from C:\arduino-1.8.13\hardware\teensy\avr\libraries\SdFat\src/SdFat.h:33,
from C:\Users\kurte\Documents\Arduino\libraries\SD\src/SD.h:27,
from C:\Users\kurte\Documents\Arduino\Teensy Tests\CSI_41_OV7670_ILI\CSI_41_OV7670_ILI.ino:24:
C:\arduino-1.8.13\hardware\teensy\avr\libraries\Time/time.h:1:2: warning: #warning "Please include TimeLib.h, not Time.h. Future versions will remove Time.h" [-Wcpp]
And in programs that for example include SD.h in several source files, this gets repeated over and over again.
Wonder best way to suppress this? Change from #warning to #message or some such thing?