diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-06-04 14:19:31 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-06-05 11:30:46 +0200 |
commit | 97b6ed7a84b765cf843cdc2f5feee8d27d4c89b6 (patch) | |
tree | c65ba84d4e505f7ce795afe9fa7e86d834da0a73 /x2p | |
parent | 35e3dd033f81095e773ca2a8bcf741114af07723 (diff) | |
download | perl-97b6ed7a84b765cf843cdc2f5feee8d27d4c89b6.tar.gz |
Remove the unused env parameter from a2p's main, and the associated pragma.
a2p's main has had the traditional Unix third parameter (env) forever.
Commit 24801a4b9a14a562 in May 2005 increased the strictness of the Tru64
compiler, and added pramgas where necessary to counter its warnings.
However, a2p's main doesn't actually *use* the env parameter, so a better
solution is to remove it. Which means that the pragma can be removed too.
Diffstat (limited to 'x2p')
-rw-r--r-- | x2p/a2py.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/x2p/a2py.c b/x2p/a2py.c index aec2a0edf1..8c08202825 100644 --- a/x2p/a2py.c +++ b/x2p/a2py.c @@ -56,12 +56,8 @@ usage() } #endif -#ifdef __osf__ -#pragma message disable (mainparm) /* We have the envp in main(). */ -#endif - int -main(int argc, const char **argv, const char **env) +main(int argc, const char **argv) { STR *str; int i; |