From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8456 invoked by alias); 3 Jul 2008 01:55:32 -0000 Received: (qmail 8140 invoked by uid 48); 3 Jul 2008 01:54:44 -0000 Date: Thu, 03 Jul 2008 01:55:00 -0000 Subject: [Bug c/36708] New: syntatic warning X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "robert dot lore at opensyscon dot com dot au" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00145.txt.bz2 I think this code is syntactically correct, but can cause problems in debugging. If you don't scrutinize the code too carefully you can waste time here - code was a cut and paste from strcpy to integer assignment with resultant comma not changed to assignment. // this code does nothing ! f -> font_size, current_font_size; // this code does something f -> font_size= current_font_size; should this produce a warning like "statement does nothing" ? its like an unused variable warning, it is a courtesy thing.. -- Summary: syntatic warning Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: robert dot lore at opensyscon dot com dot au GCC build triplet: same GCC host triplet: x86 linux (redhat) gcc GCC target triplet: same http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36708