[Bug c/43250] New: Warning for missing break in switch statement

2010-03-03 Thread eugene dot zelenko at gmail dot com
I think will be good idea to have warning (and command line option to turn it
on/off) to report missing break in switch statement.

Sure syntax is valid, but I think missed breaks are occurring more often then
intentionally skipped ones.

Same goes for C++ and other languages where similar problem could exist.


-- 
   Summary: Warning  for missing break in switch statement
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eugene dot zelenko at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43250



[Bug c/36390] Unused variable warning should be more useful

2008-08-14 Thread eugene dot zelenko at gmail dot com


--- Comment #1 from eugene dot zelenko at gmail dot com  2008-08-14 23:32 
---
I think unused variable warning should be expanded for all cases where variable
used only as lvalue. As result some useless computations could be avoided.

Coverity Prevent warn about such situations with one of its checkers. But
Coverity is too huge and slow tool, so GCC could definitely be better for such
diagnostics.


-- 

eugene dot zelenko at gmail dot com changed:

   What|Removed |Added

 CC||eugene dot zelenko at gmail
   ||dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36390



[Bug c/36195] New: Add warnings for useless static functions prototypes in -Wredundant-decls

2008-05-09 Thread eugene dot zelenko at gmail dot com
Sometimes static function prototype declared with static function definition,
but function is never called before definition. So prototype in such cases are
definitely useless.

I think will be good idea to enhance -Wredundant-decls with reporting such
situation.

PS

May be this is already implemented in versions never then 4.1.2, but 4.3.0
manual is not mention such possibility.


-- 
   Summary: Add warnings for useless static functions prototypes in
-Wredundant-decls
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eugene dot zelenko at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36195