Skip to content

Commit

Permalink
Avoid using incompatible pointer type for old_warn
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphrchvz authored Feb 19, 2024
1 parent f0bb386 commit c4cd966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Event/Event.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ PROTOTYPES: DISABLE
BOOT:
{
#ifdef pWARN_NONE
SV *old_warn = PL_curcop->cop_warnings;
void *old_warn = PL_curcop->cop_warnings;
PL_curcop->cop_warnings = pWARN_NONE;
#endif
newXS("Tk::Event::INIT", XS_Tk__Event_INIT, file);
Expand Down
7 changes: 1 addition & 6 deletions tkGlue.c
Original file line number Diff line number Diff line change
Expand Up @@ -5543,13 +5543,8 @@ _((pTHX))
char *XEventMethods = "abcdfhkmopstvwxyABDEKNRSTWXY#";
char buf[128];
CV *cv;
#if PERL_REVISION > 5 || (PERL_REVISION == 5 && PERL_VERSION >= 9)
#define COP_WARNINGS_TYPE STRLEN*
#else
#define COP_WARNINGS_TYPE SV*
#endif
#ifdef pWARN_NONE
COP_WARNINGS_TYPE old_warn = PL_curcop->cop_warnings;
void *old_warn = PL_curcop->cop_warnings;
PL_curcop->cop_warnings = pWARN_NONE;
#endif

Expand Down

0 comments on commit c4cd966

Please sign in to comment.