Compiler warnings not shown on subsequent compilations #1008
Labels
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
type: imperfection
Perceived defect in any part of project
Describe the problem
Compiler warnings for code from non-
.ino
source files are not shown on subsequent sketch compilations.To reproduce
When someone writes code like this (see below) he will correctly get two identical warnings:
When one compiles it again the warnings will all disappear so the user (me) thinks he is perfectly fine and writing clean code.
FunFact: This will not happen if all code is written to the main (.ino) file.
File
DummyClass.h
:File
DummyClass.cpp
:File
test.ino
:Expected behavior
Compiler warnings are shown every time the sketch is compiled if the code would produce a warning.
Arduino CLI version
60a8aa9
Operating system
All
Operating system version
Any
Additional context
Additional reports
Related
Issue checklist
The text was updated successfully, but these errors were encountered: