Issue #12411 has been updated by Usaku NAKAMURA.
Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED
----------------------------------------
Bug #12411: Warnings when compiling transcode.c on cygwin
https://bugs.ruby-lang.org/issues/12411#change-59909
* Author: Martin Drst
* Status: Closed
* Priority: Normal
* Assignee: Yui NARUSE
* ruby -v: ruby 2.4.0dev (2016-05-22 trunk 55111) [x86_64-cygwin]
* Backport: 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED
----------------------------------------
When compiling ruby trunk, the compilation of transcode produces the warnings below.
There's also a similar warning for dbm.c and a lot of them in some tkl files.
```
compiling transcode.c
In file included from ./include/ruby.h:33:0,
from internal.h:15,
from transcode.c:12:
transcode.c: In function ¡Æeconv_args¡Ç:
transcode.c:3007:44: warning: initialization discards ¡Ævolatile¡Ç qualifier from pointer target type [-Wdiscarded-qualifiers]
argc = rb_scan_args(argc, argv, "21:", snamev_p, dnamev_p, &flags_v, &opt);
^
./include/ruby/ruby.h:2156:56: note: in definition of macro ¡Ærb_scan_args¡Ç
rb_scan_args0(argc,argv,fmt,(sizeof((VALUE*[]){__VA_ARGS__})/sizeof(VALUE*)),(VALUE*[]){__VA_ARGS__}), \
^
transcode.c:3007:54: warning: initialization discards ¡Ævolatile¡Ç qualifier from pointer target type [-Wdiscarded-qualifiers]
argc = rb_scan_args(argc, argv, "21:", snamev_p, dnamev_p, &flags_v, &opt);
^
./include/ruby/ruby.h:2156:56: note: in definition of macro ¡Ærb_scan_args¡Ç
rb_scan_args0(argc,argv,fmt,(sizeof((VALUE*[]){__VA_ARGS__})/sizeof(VALUE*)),(VALUE*[]){__VA_ARGS__}), \
^
transcode.c:3007:44: warning: initialization discards ¡Ævolatile¡Ç qualifier from pointer target type [-Wdiscarded-qualifiers]
argc = rb_scan_args(argc, argv, "21:", snamev_p, dnamev_p, &flags_v, &opt);
^
./include/ruby/ruby.h:2156:97: note: in definition of macro ¡Ærb_scan_args¡Ç
rb_scan_args0(argc,argv,fmt,(sizeof((VALUE*[]){__VA_ARGS__})/sizeof(VALUE*)),(VALUE*[]){__VA_ARGS__}), \
^
transcode.c:3007:54: warning: initialization discards ¡Ævolatile¡Ç qualifier from pointer target type [-Wdiscarded-qualifiers]
argc = rb_scan_args(argc, argv, "21:", snamev_p, dnamev_p, &flags_v, &opt);
^
./include/ruby/ruby.h:2156:97: note: in definition of macro ¡Ærb_scan_args¡Ç
rb_scan_args0(argc,argv,fmt,(sizeof((VALUE*[]){__VA_ARGS__})/sizeof(VALUE*)),(VALUE*[]){__VA_ARGS__}), \
^
transcode.c: At top level:
cc1: warning: unrecognized command line option ¡Æ-Wno-self-assign¡Ç
cc1: warning: unrecognized command line option ¡Æ-Wno-constant-logical-operand¡Ç
cc1: warning: unrecognized command line option ¡Æ-Wno-parentheses-equality¡Ç
cc1: warning: unrecognized command line option ¡Æ-Wno-tautological-compare¡Ç
compiling util.c
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>