-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pin down "implicit declaration" problem #99
Comments
This also appears to be blocking me on the Arduino library integration. If I invoke printf with an argument:
I get expected serial output:
However, using only text actually results in no output being generated on the device, although I don't see a compiler warning in the Arduino IDE. But I can confirm the sketch is running with an LED blink. I suspect that call is being optimized out even though I don't see a warning.
|
BAH. I found the problem: my build system design caused the command-line arg to be missed on some files. That has been corrected. Now to figure out the Arduino issue - but closing this. |
* Added a couple of test cases for exposing the behavior of the `#` modifier (alternative mode) together with `ll` (long long modifier), and specifically exposing the example format string mentioned in bug eyalroz#114. * Our fix for eyalroz#109 was too eager to keep `FLAG_HASH` - it dropped it only when a precision wasn't specified. We're now going part of the way back - dropping `FLAG_HASH` even when precision wasn't specific - except for octal. * The `long long` version of ntoa now behaves just like the `long` version.
Working on switching over our libc implementation to use your improved fork, and I'm banging my head against the wall with a problem I don't understand (perhaps because it's the end of the day).
I'm compiling the files with
-DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1
with clang, but I get the warnings below. GCC also has this problem, although it unhelpfully tells me to include stdio.h, which I am already doing.I have verified that the header is included, and I'm actually in that logic block that defines
printf_
toprintf
. But the only way I can get these warnings to go away is to actually defineint printf(const char* format, ...) ATTR_PRINTF(1, 2);
, notprintf_
.The other oddity I note is that this only happens for
printf
calls with only a format string.This one in the same file does not generate the warning:
Any thoughts on what I'm missing here?
Clang
GCC
The text was updated successfully, but these errors were encountered: