Subject: | Initialisation not ANSI compliant |
YAML::XS cannot be built on e.g. HP-UX with native ANSI-C compiler:
cc -c -I. -Ae -DPERL_DONT_CREATE_GVSV +Z -z -D_HPUX_SOURCE -Wl,
+vnocompatwarnin
gs -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +O2
+Onolimit
-DVERSION=\"\" -DXS_VERSION=\"\" +Z "-I/pro/lib/perl5/5.8.8/PA-
RISC2.0/CORE"
-DHAVE_CONFIG_H scanner.c
cc: "scanner.c", line 1122: error 1536: Cannot evaluate initialization
expressio
n, please initialize dynamically.
cc: "scanner.c", line 1992: warning 562: Redeclaration of
"yaml_parser_scan_dire
ctive" with a different storage class specifier:
"yaml_parser_scan_directive" wi
ll have internal linkage.
The code here is
if (parser->simple_key_allowed)
{
yaml_simple_key_t simple_key = { 1, required,
parser->tokens_parsed + parser->tokens.tail - parser-
Show quoted text
>tokens.head,
{ 0, 0, 0 } };
simple_key.mark = parser->mark;