[devel] Build error on 32-bit architecture
Hi! I get the following build error on the default branch when building on a 32-bit machine: avnd_mds.c: In function 'avnd_mds_flat_ava_dec': avnd_mds.c:1139:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Werror=format=] LOG_NO("%s: wrong number of bytes to decode (%u vs %lu)", ^ cc1: all warnings being treated as errors It seems the sizeof(AVSV_NDA_AVA_MSG) needs to be casted to (unsigned long). regards, Anders Widell -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel
Re: [devel] Build error on 32-bit architecture
Hi Anders W, We will correct and push it along with 562 patch. Thanks -Nagu -Original Message- From: Anders Widell [mailto:anders.wid...@ericsson.com] Sent: 07 September 2013 20:43 To: opensaf-devel@lists.sourceforge.net Subject: [devel] Build error on 32-bit architecture Hi! I get the following build error on the default branch when building on a 32-bit machine: avnd_mds.c: In function 'avnd_mds_flat_ava_dec': avnd_mds.c:1139:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'unsigned int' [-Werror=format=] LOG_NO("%s: wrong number of bytes to decode (%u vs %lu)", ^ cc1: all warnings being treated as errors It seems the sizeof(AVSV_NDA_AVA_MSG) needs to be casted to (unsigned long). regards, Anders Widell -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel
Re: [devel] Build error on 32-bit architecture
I don't think the proposed change is correct. Instead one of the PRI macros should be used. I introduced the bug so I can fix it. Should not be done in context of another bug. Thanks, Hans On 09/09/2013 08:48 AM, Nagendra Kumar wrote: > Hi Anders W, > We will correct and push it along with 562 patch. > > Thanks > -Nagu > > -Original Message- > From: Anders Widell [mailto:anders.wid...@ericsson.com] > Sent: 07 September 2013 20:43 > To: opensaf-devel@lists.sourceforge.net > Subject: [devel] Build error on 32-bit architecture > > Hi! > > I get the following build error on the default branch when building on a > 32-bit machine: > > avnd_mds.c: In function 'avnd_mds_flat_ava_dec': > avnd_mds.c:1139:3: error: format '%lu' expects argument of type 'long > unsigned int', but argument 7 has type 'unsigned int' [-Werror=format=] > LOG_NO("%s: wrong number of bytes to decode (%u vs %lu)", > ^ > cc1: all warnings being treated as errors > > It seems the sizeof(AVSV_NDA_AVA_MSG) needs to be casted to (unsigned long). > > regards, > Anders Widell > > > -- > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk > ___ > Opensaf-devel mailing list > Opensaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensaf-devel > > -- > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk > ___ > Opensaf-devel mailing list > Opensaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/opensaf-devel > > -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk ___ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel