Hacker News new | past | comments | ask | show | jobs | submit login

Ever heard of `-Wunused-variable`?

> rebind a variable in the same scope

But only re-assigning values of the same type. Otherwise:

  int x = foo();
  int x = bar();
  error: redefinition of 'x'
and,

  int x = foo();
  long x = bar();
  error: redefinition of 'x'
What are you talking about?





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: