On 16.02.2011 10:07, MacArthur, Ian (SELEX GALILEO, UK) wrote:

> The new jpeg build in svn is a bit noisy under Msys/mingw on Windows.
>
> I haven't used jpeg8 much - is this normal?

I can see the same messages also on Linux. The default jpeg-8c build
doesn't show them, unless I add -Wall to CFLAGS.

> Compiling jcmainct.c...
> jcmainct.c: In function `start_pass_main':
> jcmainct.c:71: warning: 'main' is usually a function
> jcmainct.c: In function `process_data_simple_main':
> jcmainct.c:117: warning: 'main' is usually a function
> jcmainct.c: In function `jinit_c_main_controller':
> jcmainct.c:247: warning: 'main' is usually a function

All these "'main' is usually a function" warnings appear only with 
-Wall. They look like another annoying (and mostly useless?) warning
to me (unless, maybe, if main is a /global/ variable).

> jerror.c: In function `error_exit':
> jerror.c:78: warning: implicit declaration of function `exit'

This one looks more serious. It appears because

#include <stdlib.h>

is missing, and this is because /our/ new jconfig.h file doesn't
include the line

#define HAVE_STDLIB_H 1

Note that jconfig.h is a _generated_ file, and my locally configured
jpeg-8c includes this (at least on Windows). Maybe we should add
it, or are there systems that might not have stdlib.h ?

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to