All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam DiCarlo <bikko@us.ibm.com>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] Add type information to enum mismatch warning
Date: Thu, 31 Aug 2006 17:07:47 -0700	[thread overview]
Message-ID: <44F779D3.8090402@us.ibm.com> (raw)

Signed-off-by: Adam DiCarlo <adam.dicarlo@gmail.com>
---
  evaluate.c |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/evaluate.c b/evaluate.c
index 177797a..3076d41 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -253,8 +253,11 @@ warn_for_different_enum_types (struct po
  	if (typea == typeb)
  		return;

-	if (typea->type == SYM_ENUM && typeb->type == SYM_ENUM)
+	if (typea->type == SYM_ENUM && typeb->type == SYM_ENUM) {
  		warning(pos, "mixing different enum types");
+		info(pos, "    %s versus", show_typename(typea));
+		info(pos, "    %s", show_typename(typeb));
+	}
  }

  /*
-- 
1.4.2.ga444

                 reply	other threads:[~2006-09-01  0:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44F779D3.8090402@us.ibm.com \
    --to=bikko@us.ibm.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.