Issue #7840 has been updated by ko1 (Koichi Sasada).

Category set to build
Assignee set to nobu (Nobuyoshi Nakada)
Target version set to next minor


----------------------------------------
Bug #7840: -Wdeclaration-after-statement is valid for C/ObjC but not for C++
https://bugs.ruby-lang.org/issues/7840#change-36372

Author: Hanmac (Hans Mackowiak)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: next minor
ruby -v: ruby 2.0.0dev (2013-02-13 trunk 39224) [x86_64-linux]


because of the new flags in warnflags i get this following errors:

cc1plus: warning: command line option '-Wdeclaration-after-statement' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wimplicit-function-declaration' is valid for C/ObjC but not for C++ [enabled by default] 

its because my gems are written in C++ and not in C, so i think this flags should not be used when the variable is used for both C and C++


-- 
http://bugs.ruby-lang.org/