[ruby-core:114447] [Ruby master Bug#7840] -Wdeclaration-after-statement is valid for C/ObjC but not for C++

Issue #7840 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Closed Looking at recent Ruby versions: * `-Wimplicit-function-declaration` is in `warnflags` * `warnflags` is included in `cflags` * `cflags` is included in `CFLAGS` but not `CXXFLAGS` * C++ compilation rules use `CXXFLAGS` and not `CFLAGS` So I think this problem has been resolved. ---------------------------------------- Bug #7840: -Wdeclaration-after-statement is valid for C/ObjC but not for C++ https://bugs.ruby-lang.org/issues/7840#change-104203 * Author: Hanmac (Hans Mackowiak) * Status: Closed * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * ruby -v: ruby 2.0.0dev (2013-02-13 trunk 39224) [x86_64-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 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++ -- https://bugs.ruby-lang.org/
participants (1)
-
jeremyevans0 (Jeremy Evans)