7.15 --brief_diagnostics, --no_brief_diagnostics

Enables and disables the output of brief diagnostic messages.

When enabled, the original source line is not displayed, and error message text is not wrapped if it is too long to fit on a single line.

Default

The default is --no_brief_diagnostics.

Example

/* main.c */
#include <stdio.h>
int main(void)
{
   printf(""Hello, world\n"); // Intentional quotation mark error
   return 0;
}
Compiling this code with --brief_diagnostics produces:
"main.c", line 5: Error:  #18: expected a ")"
"main.c", line 5: Error:  #7: unrecognized token
"main.c", line 5: Error:  #8: missing closing quote
"main.c", line 6: Error:  #65: expected a ";"
Related reference
7.44 --diag_error=tag[,tag,...]
7.45 --diag_remark=tag[,tag,...]
7.46 --diag_style=arm|ide|gnu compiler option
7.47 --diag_suppress=tag[,tag,...]
7.48 --diag_suppress=optimizations
7.49 --diag_warning=tag[,tag,...]
7.178 --wrap_diagnostics, --no_wrap_diagnostics
7.50 --diag_warning=optimizations
7.58 --errors=filename
7.173 -W
9.77 #pragma diag_error tag[,tag,...]
9.78 #pragma diag_remark tag[,tag,...]
9.79 #pragma diag_suppress tag[,tag,...]
7.143 --remarks
Chapter 5 Compiler Diagnostic Messages
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.