From 97b6ed7a84b765cf843cdc2f5feee8d27d4c89b6 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 4 Jun 2013 14:19:31 +0200 Subject: 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. --- x2p/a2py.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'x2p') 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; -- cgit v1.2.1