From xemacs-m  Mon Jul 14 15:02:21 1997
Received: from postoffice.npac.syr.edu (postoffice.npac.syr.edu [128.230.7.230])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA06918
	for <xemacs-beta@xemacs.org>; Mon, 14 Jul 1997 15:02:20 -0500 (CDT)
Received: from kopernik.npac.syr.edu (kopernik.npac.syr.edu [128.230.8.17]) by postoffice.npac.syr.edu (8.7.5/8.7.1) with SMTP id QAA09675 for <xemacs-beta@xemacs.org>; Mon, 14 Jul 1997 16:01:57 -0400 (EDT)
To: XEmacs Beta List <xemacs-beta@xemacs.org>
Subject: Re: Brussels: tons and tons of warnings
References: <199707141848.LAA05449@roy> <m2soxh2zpl.fsf@altair.xemacs.org> <kigwwmtbeis.fsf@jagor.srce.hr>
X-Attribution: RT
X-Face: *_$\]C;VV*dP;8~h{,[C-2c1"O5SYp9T(n$;fVcywXC3:5t-rq<q2Su&1;JKMC:Rscf"uNt
 f]c6=T'F&Vw!Vr(\ug6s~go|!PVdW12'X!]%Vwyr*wgAAkH^P>vs"m{(/dy|?OB%_0eY~w6A,<T*R)
 km+-K4k38UG~1&4K!}Dp>a1gb%4.!=Oyx|k]<&>7mN5NOrK`pmII3CzO0v'F<#$NoJ;g0!?/J:}j!3
 &f@I8Wo8o1XOMV9k]"'C#>R
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: Remek Trzaska <remek@npac.syr.edu>
Date: 14 Jul 1997 16:02:00 -0400
In-Reply-To: Hrvoje Niksic's message of "14 Jul 1997 21:49:15 +0200"
Message-ID: <rwx7met8ksn.fsf@kopernik.npac.syr.edu>
Lines: 250
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta13) - "Brussels"

How about the warnings I got while compiling it on Irix 6.2 in 64 bit
mode? Some of them look pretty ugly.

cd src && make  CC='cc' CFLAGS='-O -64 -s' LDFLAGS='' CPPFLAGS='' all
make[1]: Entering directory `/export/project/K136/CIV/CIVGIS/xemacs-20.3-b12/src'
[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi doprnt.c
"doprnt.c", line 281: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(specs) /* suppress compiler warning */
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi eval.c
"eval.c", line 2093: warning(1048): cast between pointer-to-object and
          pointer-to-function
    return primitive_funcall ((lisp_fn_t) get_opaque_ptr (kludgy_args[0]),
                              ^

"eval.c", line 2194: warning(1048): cast between pointer-to-object and
          pointer-to-function
      Lisp_Object opaque2 = make_opaque_ptr ((void *) fun);
                                             ^

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi events.c
"events.c", line 1771: warning(1110): statement is unreachable
        break;
        ^

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi unexelfsgi.c
"sysdep.h", line 38: warning(1204): declaration is not visible outside of
          function
  int eight_bit_tty (struct device *d);
                            ^

"sysdep.h", line 40: warning(1204): declaration is not visible outside of
          function
  void stuff_char (struct console *con, int c);
                          ^

"sysdep.h", line 42: warning(1204): declaration is not visible outside of
          function
  void init_baud_rate (struct device *d);
                              ^

"sysdep.h", line 89: warning(1204): declaration is not visible outside of
          function
  void init_one_console (struct console *c);
                                ^

"sysdep.h", line 90: warning(1204): declaration is not visible outside of
          function
  void reset_one_console (struct console *c);
                                 ^

"sysdep.h", line 91: warning(1204): declaration is not visible outside of
          function
  void init_one_device (struct device *d);
                               ^

"sysdep.h", line 92: warning(1204): declaration is not visible outside of
          function
  void reset_one_device (struct device *d);
                                ^

"sysdep.h", line 122: warning(1204): declaration is not visible outside of
          function
  int tabs_safe_p (struct device *d);
                          ^

"sysdep.h", line 126: warning(1204): declaration is not visible outside of
          function
  void get_tty_device_size (struct device *d, int *widthp, int *heightp);
                                   ^

"unexelfsgi.c", line 792: warning(1177): argument is incompatible with formal
          parameter
  	  && (round_up ((NEW_PROGRAM_H (n)).p_vaddr
  	                ^

"unexelfsgi.c", line 795: warning(1177): argument is incompatible with formal
          parameter
  	      == round_up (old_base_addr, alignment)))
  	                   ^

"unexelfsgi.c", line 902: warning(1177): argument is incompatible with formal
          parameter
  	  NEW_SECTION_H (nn).sh_offset = round_up (NEW_SECTION_H (nn).sh_offset,
  	                                           ^

"unexelfsgi.c", line 903: warning(1177): argument is incompatible with formal
          parameter
  						   NEW_SECTION_H (nn).sh_addralign);
  						   ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi toolbar.c
"toolbar.c", line 1240: warning(1185): enumerated type mixed with another type
    MAYBE_FRAMEMETH (f, toolbar_size_changed_in_frame,
    ^

"toolbar.c", line 1259: warning(1185): enumerated type mixed with another type
    MAYBE_FRAMEMETH (f, toolbar_visible_p_changed_in_frame,
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi mule-coding.c
"mule-coding.c", line 500: warning(1185): enumerated type mixed with another
          type
    CODING_SYSTEM_TYPE     (codesys) = type;
                                     ^

"mule-coding.c", line 784: warning(1185): enumerated type mixed with another
          type
  	  CODING_SYSTEM_EOL_TYPE (codesys) = symbol_to_eol_type (value);
  	                                   ^

"mule-coding.c", line 3314: warning(1185): enumerated type mixed with another
          type
  	      iso->esc = c - 0x28 + ISO_ESC_2_8;
  	               ^

"mule-coding.c", line 3417: warning(1185): enumerated type mixed with another
          type
  	  iso->esc = c - 0x28 + ISO_ESC_2_4_8;
  	           ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi event-unixoid.c
"event-unixoid.c", line 240: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(0) /* not reached */
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi extents.c
"extents.c", line 2992: warning(1116): non-void function "print_extent_1"
          (declared at line 2943) should return a value
  }
  ^

"extents.c", line 4439: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(0)
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi indent.c
"indent.c", line 604: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(0)	/* shut up compiler */
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi marker.c
"marker.c", line 396: warning(1110): statement is unreachable
    RETURN_NOT_REACHED (Qnil) /* not reached */
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi regex.c
"regex.c", line 5610: warning(1548): transfer of control bypasses
          initialization of:
            variable "same_str_p" (declared at line 4435)
      goto restore_best_regs;
      ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi specifier.c
"specifier.c", line 1027: warning(1048): cast between pointer-to-object and
          pointer-to-function
    ((void (*)(Lisp_Object)) get_opaque_ptr (boxed_method)) (instantiator);
     ^

"specifier.c", line 1047: warning(1048): cast between pointer-to-object and
          pointer-to-function
  	  Lisp_Object opaque = make_opaque_ptr ((void *)
  	                                        ^

"specifier.c", line 1188: warning(1185): enumerated type mixed with another
          type
    enum spec_add_meth add_meth = 0;
                                  ^

"specifier.c", line 2130: warning(1048): cast between pointer-to-object and
          pointer-to-function
    ((void (*)(Lisp_Object)) get_opaque_ptr (boxed_method)) (matchspec);
     ^

"specifier.c", line 2151: warning(1048): cast between pointer-to-object and
          pointer-to-function
  	    make_opaque_ptr ((void *) meths->validate_matchspec_method);
  	                     ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi symbols.c
"symbols.c", line 1827: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(Qnil)	/* suppress compiler warning */
    ^

"symbols.c", line 1911: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(Qnil)	/* suppress compiler warning */
    ^

"symbols.c", line 2291: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(Qnil)	/* suppress compiler warning */
    ^

"symbols.c", line 2356: warning(1110): statement is unreachable
    RETURN_NOT_REACHED(Qnil)	/* suppress compiler warning */
    ^

[snip]

cc -c -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi ralloc.c
"ralloc.c", line 705: warning(1042): operand types are incompatible ("POINTER"
          and "VM_ADDR")
      if (h->aliased_address == alias && *alias == h->vm_addr)
                                                ^

"ralloc.c", line 888: warning(1042): operand types are incompatible ("POINTER"
          and "VM_ADDR")
        if (*alias == MHASH_HITS[kval].addr) 
                   ^

[snip]

cc -O -64 -s  -Demacs -I. -DHAVE_CONFIG_H -I/usr/npac/include -xansi /home/R11A/remek/.koproj/xemacs-20.3-b12/src/prefix-args.c -o prefix-args
if cc -O -64 -s  -L/usr/npac/lib64 -o temacs  abbrev.o alloc.o blocktype.o buffer.o bytecode.o callint.o callproc.o casefiddle.o casetab.o chartab.o cmdloop.o cmds.o console.o console-stream.o data.o device.o dired.o doc.o doprnt.o dynarr.o editfns.o elhash.o emacs.o  eval.o events.o unexelfsgi.o dgif_lib.o gif_err.o gifalloc.o menubar.o scrollbar.o dialog.o toolbar.o gui.o menubar-x.o scrollbar-x.o dialog-x.o toolbar-x.o gui-x.o mule.o mule-ccl.o mule-charset.o mule-coding.o sgiplay.o console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o terminfo.o event-unixoid.o database.o event-stream.o extents.o faces.o fileio.o  filemode.o floatfns.o fns.o font-lock.o frame.o general.o getloadavg.o glyphs.o  hash.o indent.o insdel.o intl.o keymap.o  lread.o lstream.o macros.o marker.o md5.o minibuf.o objects.o opaque.o print.o process.o profile.o pure.o rangetab.o redisplay.o redisplay-output.o regex.o search.o signal.o sound.o specifier.o strftime.o symbo!
ls.o syntax.o sysdep.o undo.o balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o window.o  lastfile.o gmalloc.o vm-limit.o ralloc.o EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o  ../lwlib/liblw.a  -lXm -lpng -lz -ljpeg -lcompface -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lcurses -laudio -lm ; then \
	rm -f xemacs; \
fi
ld64: WARNING 85: definition of UP in terminfo.o preempts that definition in /usr/lib64/libcurses.so.
ld64: WARNING 85: definition of BC in terminfo.o preempts that definition in /usr/lib64/libcurses.so.
ld64: WARNING 85: definition of PC in terminfo.o preempts that definition in /usr/lib64/libcurses.so.
ld64: WARNING 85: definition of _malloc in gmalloc.o preempts that definition in /usr/lib64/mips4/libc.so.
ld64: WARNING 85: definition of _realloc in gmalloc.o preempts that definition in /usr/lib64/mips4/libc.so.
ld64: WARNING 85: definition of _free in gmalloc.o preempts that definition in /usr/lib64/mips4/libc.so.
rm -f ../lib-src/DOC; \



the rest of log is fine.


