Attention is currently required from: Thomas Heijligen, Anastasia Klimchuk.
1 comment:
File programmer.h:
Patch Set #4, Line 402: #if CONFIG_DUMMY == 1
I thought, with the #if it would be no error: with the #if that line of code is not included and not […]
No error in this code either way. My argument is purely theoretical; trying to
explain when the #if would make a difference: when the #if's and/or the selection
of programmer-driver .c files are out of sync.
So, these are `extern` forward declarations. For the compiler, it's not an error
to see such a declaration without the definition. Let's say we tell it to compile
`programmer_table.c`. It would see the forward declarations here and would have to
trust that things are defined in another compilation unit.
If we would remove the #if and then tell it to build without dummy support, we
would have a forward declaration that is never referenced (the #if in `programmer_
table.c` takes care of that). That's also not an error.
But let's assume somebody would forget to place the #if in `programmer_table.c`. Then if we would have an #if here we'd get
So long story short, it only makes a difference if the code is broken elsewhere.
And even then a negligible difference.
To view, visit change 52946. To unsubscribe, or for help writing mail filters, visit settings.