[Midnightbsd-cvs] src [7222] trunk/sys/dev/aic7xxx: fix two compiler warnings
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Aug 11 17:36:32 EDT 2015
Revision: 7222
http://svnweb.midnightbsd.org/src/?rev=7222
Author: laffer1
Date: 2015-08-11 17:36:31 -0400 (Tue, 11 Aug 2015)
Log Message:
-----------
fix two compiler warnings
Modified Paths:
--------------
trunk/sys/dev/aic7xxx/aic79xx_osm.c
trunk/sys/dev/aic7xxx/aicasm/aicasm_gram.y
Modified: trunk/sys/dev/aic7xxx/aic79xx_osm.c
===================================================================
--- trunk/sys/dev/aic7xxx/aic79xx_osm.c 2015-08-09 23:56:13 UTC (rev 7221)
+++ trunk/sys/dev/aic7xxx/aic79xx_osm.c 2015-08-11 21:36:31 UTC (rev 7222)
@@ -222,6 +222,7 @@
count = 0;
devq = NULL;
sim = NULL;
+ path = NULL;
/*
* Create a thread to perform all recovery.
Modified: trunk/sys/dev/aic7xxx/aicasm/aicasm_gram.y
===================================================================
--- trunk/sys/dev/aic7xxx/aicasm/aicasm_gram.y 2015-08-09 23:56:13 UTC (rev 7221)
+++ trunk/sys/dev/aic7xxx/aicasm/aicasm_gram.y 2015-08-11 21:36:31 UTC (rev 7222)
@@ -1076,7 +1076,7 @@
last_scope = TAILQ_LAST(&scope_context->inner_scope,
scope_tailq);
if (last_scope == NULL
- || last_scope->type == T_ELSE) {
+ || last_scope->type == SCOPE_ELSE) {
stop("'else if' without leading 'if'", EX_DATAERR);
/* NOTREACHED */
More information about the Midnightbsd-cvs
mailing list