]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
authorGraham Stott <grahams@redhat.com>
Wed, 8 Aug 2001 08:10:58 +0000 (08:10 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Wed, 8 Aug 2001 08:10:58 +0000 (08:10 +0000)
        * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
        (diagnostic_prefixing_rule): Likewise.
        (diagnostic_line_cutoff): Likewise.
        (diagnostic_kind_count): Likewise.

From-SVN: r44711

gcc/ChangeLog
gcc/diagnostic.h

index 4659e5b6d79f4df3e92f01886c02ec31e757dd61..878d64b5125550a6af85403a1b7cec49ee4f457f 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 8722ab7da9bb9411667b5b88a34693abdcaa095a..e48d03349efe71d9ecf7254d5a43665c19a89038 100644 (file)
@@ -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.  */