summaryrefslogtreecommitdiff
path: root/lib/AnyDBM_File.t
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2015-01-25 15:22:50 -0600
committerCraig A. Berry <craigberry@mac.com>2015-01-25 17:08:07 -0600
commitd28cce60f6f99594ae15d5ad385d305f91867d9e (patch)
tree1e56b1c526ed7184a04148b137ca464448ca5d99 /lib/AnyDBM_File.t
parent0d9debd6d08cb7991a509776061cc9c7618aec64 (diff)
downloadperl-d28cce60f6f99594ae15d5ad385d305f91867d9e.tar.gz
Dodge warning with STATIC_ASSERT_STMT, VMS C++.
This is not a C++11 compiler so it's getting the emulated version of static_assert and it doesn't like it in one case: STATIC_ASSERT_STMT(SVf_FAKE >= 1<<(sizeof(PadnameFLAGS(pn)) * 8)); ........^ %CXX-W-REFNESTFUNVAR, reference to local variable of enclosing function is not allowed at line number 3562 in file D0:[craig.blead.ext.B]b.c;1 While pn is in fact a local variable, it's in an enclosing struct, not an enclosing function. Nevertheless, we don't actually need anything from pn other than the size of one of its members, so we'll just use a NULL pointer of the correct type rather than a real live instance of that type. This is supposedly C89 so shouldn't break anything else.
Diffstat (limited to 'lib/AnyDBM_File.t')
0 files changed, 0 insertions, 0 deletions