[Mimedefang] MIMEDefang 2.57 is Released

Gary Funck gary at intrepid.com
Sun Jun 25 14:04:19 EDT 2006


David F. Skoll wrote:
> > mimedefang-multiplexor.c:4570: syntax error before `*'
> > mimedefang-multiplexor.c:4571: `b' undeclared (first use in this
> > function)
> 
> Doh doh DOH!!! Silly GCC lets me get away with way too much.

David, you might want to use more restrictive 'gcc' options when
compiling Mimedefang.  Something like the following will suitably
reduce the functionality of gcc (<g>).

gcc -ansi -pedantic-errors -Wall -Werror t.c

% cat -n t.c
     1
     2  int A[10];
     3
     4  volatile int b;
     5
     6  int main() {
     7    b = 5;
     8    int *p = &A[b];
     9  }

t.c: In function 'main':
t.c:8: error: ISO C90 forbids mixed declarations and code
cc1: warnings being treated as errors
t.c:8: warning: unused variable 'p'
t.c:9: warning: control reaches end of non-void function

(Above compiled with gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1).)






More information about the MIMEDefang mailing list