USE __COUNTER__ instead of __LINE__ when available
authorMatthias Clasen <mclasen@redhat.com>
Fri, 7 Oct 2011 05:19:15 +0000 (01:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 7 Oct 2011 05:19:15 +0000 (01:19 -0400)
commit97b0b36ae39d5eb087315259ff56c799271b28c3
tree0bc78b3ecb753d6a52467c78c60d238abb2344ee
parentc51fa1852dc7c661dc5d46355303d97a521e0a0c
USE __COUNTER__ instead of __LINE__ when available

I've seen builds fail with

nm-connection.c:119:691: error: declaration of '_GStaticAssertCompileTimeAssertion_119' shadows a previous local [-Werror=shadow]

because several compile-time assertions ended up on the same
line. __COUNTER__ is meant specifically for the purpose of
constructing identifiers, so use it when available.
glib/gmacros.h