This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/58309] New: spurious "parameter set but not used" warning in cilk plus array code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58309

            Bug ID: 58309
           Summary: spurious "parameter set but not used" warning in cilk
                    plus array code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kuszmaul at gmail dot com

The following program produces a spurious warning when using cilk plus array
notation.

$ cat foo.c
void scale(double *A, int n, double x) {
  A[0:n] *= x;
}
$ gcc foo.c -W -Wall -g -c -fcilkplus
foo.c: In function âscaleâ:
foo.c:1:27: warning: parameter ânâ set but not used
[-Wunused-but-set-parameter]
 void scale(double *A, int n, double x) {
                           ^
$ gcc --version
gcc (GCC) 4.8.0 20120912 (experimental)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]