[prev in list] [next in list] [prev in thread] [next in thread]
List: perl5-porters
Subject: yet another gcc warning tip: use -W, too
From: Jarkko Hietaniemi <jhietaniemi () gmail ! com>
Date: 2006-04-30 7:19:56
Message-ID: 4454651C.2080700 () gmail ! com
[Download RAW message or body]
$ cat x.c
int foo(int x, int y) {
return x * x;
}
int main() {
return foo(3, 4);
}
$ gcc -Wall x.c
$ gcc -Wall -W x.c
x.c: In function `foo':
x.c:1: warning: unused parameter `y'
$
In newer gccs (don't know exactly since when) the -W has
a new alternate name, -Wextra.
The -W(extra) turns on also other things, see the fine manual.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic