Hi Martin,
Martin Liška <mli...@suse.cz> wrote:
On 11/6/20 8:54 PM, Iain Sandoe wrote:
+/* Provide a dummy type for the RID enum used as an argument to
+ objc_prop_attr_kind_for_rid () */
+enum rid { DUMMY };
+
I've noticed the hunk caused the following -Wodr warning:
../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl
-L./../zlib -lz
../../gcc/c-family/c-common.h:63: warning: type ‘rid’ violates the C++
One Definition Rule [-Wodr]
63 | enum rid
|
../../gcc/c-family/stub-objc.c:30: note: an enum with different value
name is defined in another translation unit
30 | enum rid { DUMMY };
I’m not disagreeing, of course (and will sort it out)..
.. but I don’t see this warning in my builds on either Linux or Darwin -
what are the build conditions you use to get it?
thanks
Iain