Skip to content

Commit

Permalink
Devel::Peek: fix build warning
Browse files Browse the repository at this point in the history
This was:

Peek.xs:415:1: warning: missing initializer for field ‘xop_dump’ of ‘XOP’ {aka ‘const struct custom_op’} [-Wmissing-field-initializers]
  415 | };
      | ^
In file included from ../../perl.h:4542,
                 from Peek.xs:3:
../../op.h:926:21: note: ‘xop_dump’ declared here
  926 |     void          (*xop_dump)(pTHX_ const OP *o, struct Perl_OpDumpContext *ctx);
      |                     ^~~~~~~~
  • Loading branch information
tonycoz committed Sep 10, 2024
1 parent e1f6329 commit 2a59782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/Devel-Peek/Peek.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package Devel::Peek;

$VERSION = '1.35';
$VERSION = '1.36';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;

Expand Down
3 changes: 2 additions & 1 deletion ext/Devel-Peek/Peek.xs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ static const XOP my_xop = {
"Devel_Peek_Dump", /* xop_name */
"Dump", /* xop_desc */
OA_BINOP, /* xop_class */
NULL /* xop_peep */
NULL, /* xop_peep */
NULL /* xop_dump */
};

MODULE = Devel::Peek PACKAGE = Devel::Peek
Expand Down

0 comments on commit 2a59782

Please sign in to comment.