Closed cr1901 closed 6 years ago
@cr1901 Any idea why we are not seeing this issue on Travis now I have rolled the latest GCC?
No, I haven't a clue. Perhaps GCC's warnings got less pessimistic?
It seems like this pull request has already been merged. I'm going to close it.
When compiling the HDMI2USB firmware w/ recent gcc versions (I first noticed them in 7+), the build would error out in
pll.c
andci.c
. These are my proposed fixes.The
pll.c
workaround(void) pll_config10x[0];
is a no-op that makes gcc (and probably other C compilers) treat a variable as used.-Werror=unused-const-variable
is enabled, and since it's a conditional compile for now that determines whetherpll_config10x[0]
actually gets used, I think this is a better solution until the S6 issues get worked out.The
ci.c
fix was attempting to compare achar *
to achar
literal, and I believe that to be a genuine bug. :)