Skip to content

Commit

Permalink
MD5: static is not at beginning of declaration
Browse files Browse the repository at this point in the history
gcc-5.0: -Wold-style-declaration
  • Loading branch information
Reini Urban authored and Reini Urban committed Feb 16, 2015
1 parent 928224b commit 197afe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpan/Digest-MD5/MD5.xs
Expand Up @@ -156,7 +156,7 @@ STATIC int dup_md5_ctx(pTHX_ MAGIC *mg, CLONE_PARAMS *params)
#endif

#if defined(MGf_DUP) && defined(USE_ITHREADS)
const STATIC MGVTBL vtbl_md5 = {
STATIC const MGVTBL vtbl_md5 = {
NULL, /* get */
NULL, /* set */
NULL, /* len */
Expand All @@ -168,7 +168,7 @@ const STATIC MGVTBL vtbl_md5 = {
};
#else
/* declare as 5 member, not normal 8 to save image space*/
const STATIC struct {
STATIC const struct {
int (*svt_get)(SV* sv, MAGIC* mg);
int (*svt_set)(SV* sv, MAGIC* mg);
U32 (*svt_len)(SV* sv, MAGIC* mg);
Expand Down

0 comments on commit 197afe4

Please sign in to comment.