All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add type information to enum mismatch warning
@ 2006-09-01  0:07 Adam DiCarlo
  0 siblings, 0 replies; only message in thread
From: Adam DiCarlo @ 2006-09-01  0:07 UTC (permalink / raw)
  To: linux-sparse

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-01  0:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-01  0:07 [PATCH] Add type information to enum mismatch warning Adam DiCarlo

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.