warnings.sed 2.96 KB
Newer Older
1
# This sed script removes known warnings for the benefit of Xenofarm.
2

Per Cederqvist's avatar
Per Cederqvist committed
3
4
# NOTE: the "?" and "|" operators are not portable.  Don't use them.

5
6
# FIXME (bug 976): Lots of warnings from regex.c.
/regex\.c/d
7

8
9
10
# glibc-2.1.2/gcc-2.95.2 on gratia.
/\/usr\/include\/inttypes.h:427: warning: function returns an aggregate/d
/\/usr\/include\/inttypes.h:428: warning: function call has aggregate value/d
Per Cederqvist's avatar
Per Cederqvist committed
11
/\/usr\/include\/bits\/string2.h:.*: warning: pointer of type `void \*' used in arithmetic/d
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

# The Intel C++ compiler doesn't like the -M options that
# automake-1.7.2 uses to create dependency information.
/icc: Command line warning: ignoring option '-M'; no argument required/d
/icc: Command line warning: no action performed for specified object file(s)/d

# flex-2.5.4 generates some unused stuff.
/aux-item-def-scan.c:.*: warning: label `find_rule' defined but not used/d
/aux-item-def-scan.c:.*: warning: `yy_flex_realloc' defined but not used/d
/aux-item-def-scan.c:.*: warning: `yyunput' defined but not used/d

# Quoted from src/server/getopt.h:
#   /* Many other libraries have conflicting prototypes for getopt, with
#      differences in the consts, in stdlib.h.  To avoid compilation
#      errors, only prototype getopt for the GNU C library.  */
/getopt\.h:104: warning: function declaration isn't a prototype/d

# When compiling on a system that doesn't use the GNU C library,
Per Cederqvist's avatar
Per Cederqvist committed
30
31
32
33
34
# getopt.c and getopt1.c uses non-prototype declarations of several
# library functions.
#
# Examples: AIX 4.2 on hal.lysator.liu.se, AIX 4.3 on
# dupond.lysator.liu.se.
Per Cederqvist's avatar
Per Cederqvist committed
35
36
/getopt\.c:.*: warning: function declaration isn't a prototype/d
/getopt1\.c:.*: warning: function declaration isn't a prototype/d
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

# This is a harmless comparison of the return value of strlen() and
# a difference between two pointers.  Warning created on AIX 4.3 with
# gcc 3.2 (castafiore.lysator.liu.se).
/getopt\.c:461: warning: comparison between signed and unsigned/d

# This is a false warning from gcc 3.2 (seen oon AIX 4.3,
# castafiore.lysator.liu.se).
/getopt\.c:451: warning: `indfound' might be used uninitialized in this function/d

# On AIX 4.3, with the /usr/vac/bin/cc compiler, sig_atomic_t is
# apparently a volatile type.  The lyskom-server code uses "volatile
# sig_atomic_t", since many systems exists where sig_atomic_t isn't
# volatile, and this results in the warnings below.
# Seen on dupond.lysator.liu.se.
Per Cederqvist's avatar
Per Cederqvist committed
52
53
54
/"sys\.c", line .*: 1506-112 (W) Duplicate type qualifier "volatile" ignored\./d
/"signal\.c", line .*: 1506-112 (W) Duplicate type qualifier "volatile" ignored\./d

55
56
57
58

# Linux on ia64. gcc-2.96. soyokaze.roxen.com as of 2003-01-18.
/\/usr\/include\/bits\/socket\.h:271: warning: cast increases required alignment of target type/d

Per Cederqvist's avatar
Per Cederqvist committed
59
60
61
# Linux on ia64. gcc-2.96. gosroth.roxen.com as of 2003-07-16.
/\/usr\/include\/bits\/socket\.h:268: warning: cast increases required alignment of target type/d

62
# Linux on ia64 with the ecc compiler.  soyokaze.roxen.com as of 2003-01-18.
Per Cederqvist's avatar
Per Cederqvist committed
63
/warning #688: "format" is an unrecognized __declspec attribute/d