perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject svn commit: r1213902 - /perl/modperl/trunk/src/modules/perl/mod_perl.c
Date Tue, 13 Dec 2011 20:04:15 GMT
Author: gozer
Date: Tue Dec 13 20:04:15 2011
New Revision: 1213902

URL: http://svn.apache.org/viewvc?rev=1213902&view=rev
Log:
Silence a compiler warning when MP_TRACE is not enabled


Modified:
    perl/modperl/trunk/src/modules/perl/mod_perl.c

Modified: perl/modperl/trunk/src/modules/perl/mod_perl.c
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/src/modules/perl/mod_perl.c?rev=1213902&r1=1213901&r2=1213902&view=diff
==============================================================================
--- perl/modperl/trunk/src/modules/perl/mod_perl.c (original)
+++ perl/modperl/trunk/src/modules/perl/mod_perl.c Tue Dec 13 20:04:15 2011
@@ -439,13 +439,13 @@ int modperl_init_vhost(server_rec *s, ap
 void modperl_init(server_rec *base_server, apr_pool_t *p)
 {
     server_rec *s;
-    modperl_config_srv_t *base_scfg;
     PerlInterpreter *base_perl;
-
-    base_scfg = modperl_config_srv_get(base_server);
+#ifdef MP_TRACE
+    modperl_config_srv_t *base_scfg = modperl_config_srv_get(base_server);
 
     MP_TRACE_d_do(MpSrv_dump_flags(base_scfg,
                                    base_server->server_hostname));
+#endif /* MP_TRACE */
 
 #ifndef USE_ITHREADS
     if (modperl_threaded_mpm()) {



Mime
View raw message