-
Notifications
You must be signed in to change notification settings - Fork 577
ext/Devel-Peek/Peek.xs: Eliminate one warning in gcc build #14457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @jkeenanThe patch attached should eliminate one warning generated during 'make' when built with gcc. I have this smoking in the 'smoke-me/jkeenan/peek-xs' branch. Please review. Thank you very much. -- |
From @jkeenan0001-Reverse-const-static-to-avoid-old-style-declaration-.patchFrom 999b04be3a014e8cf01638db7a64926536aa0a88 Mon Sep 17 00:00:00 2001
From: James E Keenan <[email protected]>
Date: Sat, 31 Jan 2015 20:44:27 -0500
Subject: [PATCH] Reverse 'const static' to avoid 'old-style-declaration'
warning.
---
ext/Devel-Peek/Peek.pm | 2 +-
ext/Devel-Peek/Peek.xs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ext/Devel-Peek/Peek.pm b/ext/Devel-Peek/Peek.pm
index f3adcfc..bbea3cd 100644
--- a/ext/Devel-Peek/Peek.pm
+++ b/ext/Devel-Peek/Peek.pm
@@ -3,7 +3,7 @@
package Devel::Peek;
-$VERSION = '1.21';
+$VERSION = '1.22';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
diff --git a/ext/Devel-Peek/Peek.xs b/ext/Devel-Peek/Peek.xs
index 856ff77..132cad7 100644
--- a/ext/Devel-Peek/Peek.xs
+++ b/ext/Devel-Peek/Peek.xs
@@ -406,7 +406,7 @@ S_ck_dump(pTHX_ OP *entersubop, GV *namegv, SV *cv)
return (OP *)newop;
}
-const static XOP my_xop = {
+static const XOP my_xop = {
XOPf_xop_name|XOPf_xop_desc|XOPf_xop_class, /* xop_flags */
"Devel_Peek_Dump", /* xop_name */
"Dump", /* xop_desc */
--
1.9.1
|
From @jkeenanSummary of my perl5 (revision 5 version 21 subversion 9) configuration: Characteristics of this binary (from libperl): |
The RT System itself - Status changed from 'new' to 'open' |
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123704 (status was 'resolved')
Searchable as RT123704$
The text was updated successfully, but these errors were encountered: