Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] rev 13293: /trunk/gtk/: main.cprint_dlg.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 05 Feb 2005 03:57:03 -0800
Peter Kjellerstedt wrote:

Well, you could add something like this to the end of the switch:

	default:
		g_assert(0 && "We should never get here");
		break;

g_assert_not_reached() would be used there...

...but I'd rather have a check done by GCC at compile time.