diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y
index 98d047b31..b935ab946 100644
--- a/tools/qfcc/source/qc-parse.y
+++ b/tools/qfcc/source/qc-parse.y
@@ -323,18 +323,21 @@ type_name
 	;
 
 function_decl
-	: '(' param_list ')' { $$ = reverse_params ($2); }
+	: '(' param_list ')'	{ $$ = reverse_params ($2); }
 	| '(' param_list ',' ELLIPSIS ')'
 		{
 			$$ = new_param (0, 0, 0);
 			$$->next = $2;
 			$$ = reverse_params ($$);
 		}
-	| '(' ELLIPSIS ')' { $$ = new_param (0, 0, 0); }
-	| '(' ')'
+	| '(' ELLIPSIS ')'		{ $$ = new_param (0, 0, 0); }
+	| '(' TYPE ')'
 		{
+			if ($2 != &type_void)
+				PARSE_ERROR;
 			$$ = 0;
 		}
+	| '(' ')'				{ $$ = 0; }
 	;
 
 param_list