[Pkg-wmaker-commits] [wmbubble] 63/207: Actually, let's make an invalid xresource parse table fail hard.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit e7c4844d0acca04fb44078903a919c941cbe88ee
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Thu Aug 11 12:43:18 2011 -0700

    Actually, let's make an invalid xresource parse table fail hard.
---
 bubblemon.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bubblemon.c b/bubblemon.c
index f5b2b00..4a6967a 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -314,7 +314,9 @@ void bubblemon_session_defaults(XrmDatabase x_resource_database)
 					}
 					break;
 				default:
-					/* fail soft */
+					fprintf(stderr, "Compilation time error: element #%d (%s) has not-understood parse type %d\n",
+					        i, x_resource_extras[i].option, x_resource_extras[i].parse_as);
+					abort();
 					break;
 				}
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list