httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Fear <...@pooh.pageplus.com>
Subject [PATCH] mod_include handle_endif unused
Date Sun, 27 Jul 1997 22:32:43 GMT

Dean Gaudet writes:
> After adding static stuff in mod_include I got this:
>     mod_include.c:1721: warning: `handle_endif' defined but not used
> When it reaches an endif it calls handle_else... what's up with that ? 

The following patch ran through my test page cleanly.

--
Howard Fear      I'm just a country perl hacker Jim.        hsf@pageplus.com
                    http://www.pageplus.com/~hsf/           hsf@redcape.com

*** mod_include.c.dist	Sun Jul 27 12:54:31 1997
--- mod_include.c	Sun Jul 27 12:56:22 1997
***************
*** 1728,1733 ****
--- 1728,1734 ----
  #ifdef DEBUG_INCLUDE
  rvputs(r, "**** endif conditional_status=\"", *conditional_status ? "1" : "0", "\"\n", NULL);
  #endif
+         *printing = 1;
          *conditional_status = 1;
          return 0;
      } else {
***************
*** 1843,1850 ****
                  continue;
              } else if (!strcmp(directive, "endif")) {
                  if (!if_nesting) {
!                     ret = handle_else(f, r, error, &conditional_status, &printing);
!                     printing = 1;
                  } else {
                      if_nesting--;
                  }
--- 1844,1850 ----
                  continue;
              } else if (!strcmp(directive, "endif")) {
                  if (!if_nesting) {
!                     ret = handle_endif(f, r, error, &conditional_status, &printing);
                  } else {
                      if_nesting--;
                  }

Mime
View raw message