diff options
author | Graham Stott <grahams@redhat.com> | 2001-08-08 08:10:58 +0000 |
---|---|---|
committer | Graham Stott <grahams@gcc.gnu.org> | 2001-08-08 08:10:58 +0000 |
commit | 5f9689e59f9d5af9df5383c677e28aa1e9164ccd (patch) | |
tree | 430b49af472ef365d3d4540c52b5c01b62325058 /gcc | |
parent | 6d8c73f7e5f271272681e3edd588b51b9cc66ef3 (diff) | |
download | gcc-5f9689e59f9d5af9df5383c677e28aa1e9164ccd.zip gcc-5f9689e59f9d5af9df5383c677e28aa1e9164ccd.tar.gz gcc-5f9689e59f9d5af9df5383c677e28aa1e9164ccd.tar.bz2 |
diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
* diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
(diagnostic_prefixing_rule): Likewise.
(diagnostic_line_cutoff): Likewise.
(diagnostic_kind_count): Likewise.
From-SVN: r44711
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/diagnostic.h | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4659e5b..878d64b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2001-08-08 Graham Stott <grahams@redhat.com> + * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter. + (diagnostic_prefixing_rule): Likewise. + (diagnostic_line_cutoff): Likewise. + (diagnostic_kind_count): Likewise. + +2001-08-08 Graham Stott <grahams@redhat.com> + * alias.c (find_base_decl): Delete redundent assignment. 2001-08-08 Graham Stott <grahams@redhat.com> diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 8722ab7..e48d033 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -226,17 +226,17 @@ struct diagnostic_context /* Client supplied function used to decode formats. Can operate on both `output_buffer *' and `diagnostic_context *'. */ -#define diagnostic_format_decoder(DC) ((output_buffer *)DC)->format_decoder +#define diagnostic_format_decoder(DC) ((output_buffer *)(DC))->format_decoder /* Prefixing rule used in formatting a diagnostic message. Accepts both `output_buffer *' and `diagnostic_context *'. */ #define diagnostic_prefixing_rule(DC) \ - ((output_buffer *)DC)->state.prefixing_rule + ((output_buffer *)(DC))->state.prefixing_rule /* Maximum characters per line in automatic line wrapping mode. Zero means don't wrap lines. */ #define diagnostic_line_cutoff(DC) \ - ((output_buffer *)DC)->state.ideal_maximum_length + ((output_buffer *)(DC))->state.ideal_maximum_length /* This diagnostic context is used by front-ends that directly output diagnostic messages without going through `error', `warning', @@ -248,7 +248,7 @@ extern output_buffer *diagnostic_buffer; /* The total count of a KIND of diagnostics meitted so far. */ #define diagnostic_kind_count(DC, DK) \ - ((output_buffer *)DC)->state.diagnostic_count[(int) DK] + ((output_buffer *)(DC))->state.diagnostic_count[(int) (DK)] /* The number of errors that have been issued so far. Ideally, these would take an output_buffer as an argument. */ |