Обсуждение: warnings from parser?

Поиск
Список
Период
Сортировка

warnings from parser?

От
Pavel Stehule
Дата:
Hi

I got new warnings

gram.y: In function ‘base_yyparse’:
gram.y:4507:20: warning: assignment to ‘CollateClause *’ {aka ‘struct CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
      n->collClause = $7;
                    ^
gram.y:4519:20: warning: assignment to ‘CollateClause *’ {aka ‘struct CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
      n->collClause = $10;
                    ^

Regards

Pavel

Re: warnings from parser?

От
Pavel Stehule
Дата:


2018-09-10 19:23 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:
Hi

I got new warnings

gram.y: In function ‘base_yyparse’:
gram.y:4507:20: warning: assignment to ‘CollateClause *’ {aka ‘struct CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
      n->collClause = $7;
                    ^
gram.y:4519:20: warning: assignment to ‘CollateClause *’ {aka ‘struct CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
      n->collClause = $10;
                    ^


/usr/bin/bison -Wno-deprecated  -d -o preproc.c preproc.y
preproc.y:4744.2: warning: empty rule for typed nonterminal, and no action [-Wother]
 |  AlterExtensionStmt:
  ^

 

Regards

Pavel

Re: warnings from parser?

От
Andrew Gierth
Дата:
>>>>> "Pavel" == Pavel Stehule <pavel.stehule@gmail.com> writes:

 >> gram.y: In function ‘base_yyparse’:
 >> gram.y:4507:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $7;
 >> ^
 >> gram.y:4519:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $10;
 >> ^

That's not the text that appears on those lines of gram.y in current git
master. What are you trying to compile?

 Pavel> /usr/bin/bison -Wno-deprecated  -d -o preproc.c preproc.y
 Pavel> preproc.y:4744.2: warning: empty rule for typed nonterminal, and no action

preproc.y is a generated file, created from gram.y and other files by a
perl script.

So I'm guessing you're using a modified gram.y and everything else is
fallout from an error there.

--
Andrew (irc:RhodiumToad)


Re: warnings from parser?

От
Pavel Stehule
Дата:


2018-09-10 19:38 GMT+02:00 Andrew Gierth <andrew@tao11.riddles.org.uk>:
>>>>> "Pavel" == Pavel Stehule <pavel.stehule@gmail.com> writes:

 >> gram.y: In function ‘base_yyparse’:
 >> gram.y:4507:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $7;
 >> ^
 >> gram.y:4519:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $10;
 >> ^

That's not the text that appears on those lines of gram.y in current git
master. What are you trying to compile?

 Pavel> /usr/bin/bison -Wno-deprecated  -d -o preproc.c preproc.y
 Pavel> preproc.y:4744.2: warning: empty rule for typed nonterminal, and no action

preproc.y is a generated file, created from gram.y and other files by a
perl script.

So I'm guessing you're using a modified gram.y and everything else is
fallout from an error there.


maybe my git repository is broken

I'll recheck it.

Thank you

Pavel
--
Andrew (irc:RhodiumToad)

Re: warnings from parser?

От
Pavel Stehule
Дата:


2018-09-10 19:39 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:


2018-09-10 19:38 GMT+02:00 Andrew Gierth <andrew@tao11.riddles.org.uk>:
>>>>> "Pavel" == Pavel Stehule <pavel.stehule@gmail.com> writes:

 >> gram.y: In function ‘base_yyparse’:
 >> gram.y:4507:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $7;
 >> ^
 >> gram.y:4519:20: warning: assignment to ‘CollateClause *’ {aka ‘struct
 >> CollateClause *’} from incompatible pointer type ‘Node *’ {aka ‘>
 >> n-> collClause = $10;
 >> ^

That's not the text that appears on those lines of gram.y in current git
master. What are you trying to compile?

 Pavel> /usr/bin/bison -Wno-deprecated  -d -o preproc.c preproc.y
 Pavel> preproc.y:4744.2: warning: empty rule for typed nonterminal, and no action

preproc.y is a generated file, created from gram.y and other files by a
perl script.

So I'm guessing you're using a modified gram.y and everything else is
fallout from an error there.


maybe my git repository is broken

I'll recheck it.

Thank you

It was from my branch.

I am sorry for noise.

Regards

Pavel


Pavel
--
Andrew (irc:RhodiumToad)