question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#pragma message will never be printed

See original GitHub issue

#warning works, but I assume #pragma message goes to stdout which is consumed by mbed cli

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
theotherjimmycommented, Oct 2, 2018

@drahnr I’ll be happy to add something like [INFO] for messages, if we have a way to find them in all 3 compilers, and we can document how to use it. [Mirrored to Jira]

1reaction
drahnrcommented, Oct 2, 2018

@theotherjimmy it only works with compiling many chunks of the final application as libs (where warnings are an absolute no-go), mbed-os itself is for sure not free of warnings… (although most of them vanish if one accepts a few non-portable things for GCC specifics about defined() usage for the NRF52) [Mirrored to Jira]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show #pragma message in header only once during build
My answer makes sure that the file cobtaining the message pragma is only ever included once. This makes sure that it is printed...
Read more >
__pragma message causes compile abortion - Visual ...
Of course this message was never intended to stop compilation ... in the text as this will cause the colorizer to print the...
Read more >
#pragma Directive in C/C++ - GeeksforGeeks
#pragma warn Directive: This directive is used to hide the warning messages which are displayed during compilation.
Read more >
Pragma statements supported by SQLite
No error messages are generated if an unknown pragma is issued. Unknown pragmas are simply ignored. This means if there is a typo...
Read more >
3.7 Options to Control Diagnostic Messages Formatting
Try to format error messages so that they fit on lines of about n characters. If n is zero, then no line-wrapping is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found