ping
Em sex, 24 de mai de 2019 às 09:53, Rafael Tsuha <rafael.ts...@usp.br> escreveu: > > This patch adds a function to warn when there's a bitwise operation > between a boolean and any other type. This kind of operation is > probably a programmer mistake that may lead to unexpected behavior > because possibily the logical operation was intended. > The test was adapted from PR c/17896. > > gcc/c-family/ChangeLog > 2019-05-24 Rafael Tsuha <rafael.ts...@usp.br> > > * c-warn.c (warn_logical_operator): Check for missplaced bitwise op. > > gcc/testsuite/ChangeLog > 2019-05-24 Rafael Tsuha <rafael.ts...@usp.br> > > PR c/17896 > * gcc.dg/boolean-bitwise.c: New test.