On 26/06/15 15:30, Raoul Hecky wrote: > Hi all, > > With latest git, when building Calaos (which is a C++ project) with clang++ > 3.6.1 I get a warning for every files that is build and that includes > Elementary.h: > > In file included from /home/raoul/local/include/elementary-1/Elementary.h:158: > In file included from /home/raoul/local/include/elementary-1/elm_prefs.h:76: > /home/raoul/local/include/elementary-1/elm_prefs_common.h:33:1: > warning: empty struct has size 0 in C, size 1 in C++ > [-Wextern-c-compat] > struct _Elm_Prefs_Item_Spec_Void > ^ > > > If I add a data to the _Elm_Prefs_Item_Spec_Void struct I don't get the > warning anymore... But I'm not sure of the correctness of this fix... > > Thoughts?
Shouldn't this be within an extern c, and then it shouldn't matter? -- Tom. ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel