This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58309] New: spurious "parameter set but not used" warning in cilk plus array code
- From: "kuszmaul at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Sep 2013 17:42:12 +0000
- Subject: [Bug c/58309] New: spurious "parameter set but not used" warning in cilk plus array code
- Auto-submitted: auto-generated
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.