bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

textutils-2.0.21: SGI compiler warnings


From: Nelson H. F. Beebe
Subject: textutils-2.0.21: SGI compiler warnings
Date: Mon, 18 Feb 2002 12:05:25 -0700 (MST)

The SGI C and C++ compilers are very picky about many things, and
generally, their warnings are quite helpful in keeping code clean and
strictly Standard-conforming.

Here are the diagnostics produced for textutils-2.0.21:

cc-1177 c89: WARNING File = getdate.y, Line = 969
  The indicated argument is incompatible with the corresponding formal 
parameter.

    if (yyparse (&pc) != 0
                 ^

cc-1185 c89: WARNING File = exclude.c, Line = 158
  An enumerated type is mixed with another type.

        bool excluded = !! (exclude[0].options & EXCLUDE_INCLUDE);
                        ^

cc-1185 c89: WARNING File = exclude.c, Line = 172
  An enumerated type is mixed with another type.

              bool matched = ((*matcher) (pattern, f, options) == 0);
                             ^

cc-1185 c89: WARNING File = exclude.c, Line = 178
  An enumerated type is mixed with another type.

                    matched = ((*matcher) (pattern, p + 1, options) == 0);
                            ^

cc-1185 c89: WARNING File = exclude.c, Line = 220
  An enumerated type is mixed with another type.

    bool use_stdin = filename[0] == '-' && !filename[1];
                     ^

cc-1116 c89: WARNING File = path-concat.c, Line = 127
  Non-void function "xpath_concat" (declared at line 121) should return a value.

  }
  ^

cc-1552 c89: WARNING File = regex.c, Line = 7337
  The variable "pdummy" is set but never used.

              UCHAR_T *pdummy = NULL;
                       ^

cc-1552 c89: WARNING File = regex.c, Line = 7338
  The variable "sdummy" is set but never used.

              const CHAR_T *sdummy = NULL;
                            ^

cc-1548 c89: WARNING File = regex.c, Line = 7685
  The transfer of control bypasses...

            ... the initialization of variable "same_str_p" (declared at line
                      6133).
      goto restore_best_regs;
      ^
cc-1164 c89: WARNING File = cat.c, Line = 185
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

        if (full_write (STDOUT_FILENO, buf, n_read) != n_read)
                                       ^

cc-1164 c89: WARNING File = cat.c, Line = 266
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                  if (full_write (STDOUT_FILENO, wp, outsize) != outsize)
                                                 ^

cc-1164 c89: WARNING File = cat.c, Line = 319
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

                  if (full_write (STDOUT_FILENO, outbuf, n_write) != n_write)
                                                 ^

cc-1185 c89: WARNING File = fmt.c, Line = 598
  An enumerated type is mixed with another type.

    return (next_prefix_indent == prefix_indent
           ^

cc-1185 c89: WARNING File = fmt.c, Line = 643
  An enumerated type is mixed with another type.

        word_limit->final = (c == EOF
                          ^

cc-1185 c89: WARNING File = fmt.c, Line = 717
  An enumerated type is mixed with another type.

    w->paren = isopen (*start);
             ^

cc-1185 c89: WARNING File = fmt.c, Line = 718
  An enumerated type is mixed with another type.

    w->punct = ISPUNCT (*finish);
             ^

cc-1185 c89: WARNING File = fmt.c, Line = 721
  An enumerated type is mixed with another type.

    w->period = isperiod (*finish);
              ^

cc-1185 c89: WARNING File = ptx.c, Line = 527
  An enumerated type is mixed with another type.

    bool using_stdin = !file_name || !*file_name || strcmp (file_name, "-") == 
0;
                       ^
cc-1185 c89: WARNING File = sort.c, Line = 2170
  An enumerated type is mixed with another type.

    bool obsolete_usage = (posix2_version () < 200112);
                          ^

cc-1185 c89: WARNING File = tail.c, Line = 1293
  An enumerated type is mixed with another type.

    obsolete_usage = (posix2_version () < 200112);
                   ^
cc-1185 c89: WARNING File = uniq.c, Line = 392
  An enumerated type is mixed with another type.

    bool posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL);
                           ^

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: address@hidden  -
- Department of Mathematics, 322 INSCC      address@hidden  address@hidden -
- 155 S 1400 E RM 233                       address@hidden                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]