Skip to content

Deprecated function warning getenv()- unsafe #20848

Open
@mubinskt

Description

@mubinskt

Module:

Description

The inline.h file uses a function called getenv() which results into a warning 'deprecated function'.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(C4996)%26rd%3Dtrue&view=msvc-170

image

link to a discussion on the topic
https://stackoverflow.com/questions/48568707/getenv-function-may-be-unsafe-really

Steps to Reproduce

Rebuild in a MFC Windows application referring perl files.

Expected behavior

Warning resolved

Perl configuration

# perl -V output goes here

This is perl 5, version 32, subversion 1 (v5.32.1) built for MSWin32-x64-multi-thread

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions