mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
Generate an error for variables declared with type void
This commit is contained in:
parent
8400bc4d35
commit
cec65a6b76
1 changed files with 1 additions and 1 deletions
|
|
@ -841,7 +841,7 @@ ast_declarator_list::hir(exec_list *instructions,
|
|||
* FINISHME: declaration at a higher scope.
|
||||
*/
|
||||
|
||||
if (decl_type == NULL) {
|
||||
if ((decl_type == NULL) || decl_type->is_void()) {
|
||||
YYLTYPE loc;
|
||||
|
||||
loc = this->get_location();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue