[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (1b287d76e7c0ae608b243ab311049bd5210d9ad8)
The branch, master has been updated
via 1b287d76e7c0ae608b243ab311049bd5210d9ad8 (commit)
from 8bb43a767b7d743131e5db162eaf540c5628700c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/gtkhid-gdk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit 1b287d76e7c0ae608b243ab311049bd5210d9ad8
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: g_return_if_reached() for receipt of gui->use_mask(HID_MASK_BEFORE)
This means one less untranslated printf which is never hit. If for some
reason the core sends us one of these - logging a warning and continuing
is probably better than a hard abort()
:100644 100644 52d9990... 76e7659... M src/hid/gtk/gtkhid-gdk.c
=========
Changes
=========
commit 1b287d76e7c0ae608b243ab311049bd5210d9ad8
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
hid/gtk: g_return_if_reached() for receipt of gui->use_mask(HID_MASK_BEFORE)
This means one less untranslated printf which is never hit. If for some
reason the core sends us one of these - logging a warning and continuing
is probably better than a hard abort()
diff --git a/src/hid/gtk/gtkhid-gdk.c b/src/hid/gtk/gtkhid-gdk.c
index 52d9990..76e7659 100644
--- a/src/hid/gtk/gtkhid-gdk.c
+++ b/src/hid/gtk/gtkhid-gdk.c
@@ -270,8 +270,8 @@ ghid_use_mask (int use_it)
break;
case HID_MASK_BEFORE:
- printf ("gtk doesn't support mask_before!\n");
- abort ();
+ /* The HID asks not to receive this mask type, so warn if we get it */
+ g_return_if_reached ();
case HID_MASK_CLEAR:
if (!gport->mask)
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs