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.