- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a project where I enable various components in the schematic. I detect that in my code to do conditional compilation, but I would like a reminder note to show in the Notice List in Creator. I am able to get it to the warning list using "#pragma GCC warning 'message'", but company policy requires no "Warnings in compiles", so I would like it to show in the Note category in the Notice window instead. How is that done?
Solved! Go to Solution.
- Labels:
-
PSoC Creator Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creator has a system that monitors compiler output and uses regular expressions to match toolchain output to detect errors and warnings. Detecting new forms of output (e.g., to generate info notices for #pragma diagnostic) would require a new Creator release. We will try to incorporate this in future releases though I cannot give you a definite deadline.
But for now, there is no tweak available to get the warnings into the Notes list.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can suppress the warnings using the diagnostic pragma directives (Link: https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html ).
Usage example: #pragma GCC diagnostic ignored "-Wformat"
This will prevent the warnings from showing up in the warnings list. Is suppressing what you need or just a transfer from warnings list to note list?
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What I need to do is make a message appear under the Notes in the notice list. I can successfully get a message in the Warnings of the notice list, but that requires creating a warning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creator has a system that monitors compiler output and uses regular expressions to match toolchain output to detect errors and warnings. Detecting new forms of output (e.g., to generate info notices for #pragma diagnostic) would require a new Creator release. We will try to incorporate this in future releases though I cannot give you a definite deadline.
But for now, there is no tweak available to get the warnings into the Notes list.
Regards,
Dheeraj