Take this code snippet as an example:
When I compile this with gcc -Wall it won't even warn me or anything...Code:#include<stdio.h> typedef unsigned foo_t; typedef unsigned bar_t; void func(foo_t foo) { printf("foo=%u\n", foo); } int main(int argc, char* argv[]) { bar_t bar = 0; func(bar); return 0; }
How can I make this raise an error, or at least a warning?