opensubscriber
   Find in this group all groups
 
Unknown more information…

n : net-snmp-users@lists.sourceforge.net 15 September 2009 • 3:44AM -0400

GCC warnings compiling mib2c output
by Christopher Nelson

REPLY TO AUTHOR
 
REPLY TO GROUP






We're using Net-SNMP 5.2.2.  Some time ago, we generated MIB code with
mib2c.  Recently, we upgraded compilers and we're seeing a lot of
warnings about "dereferencing type-punned pointer will break
strict-aliasing rules" in code like:

                    if (retval) {
                        ui = SNMP_MALLOC_STRUCT(undoInfo);
                        ui->len = retval_len;
                        memdup((u_char **) & ui->ptr,
                               (u_char *) retval, ui->len);
                    }

which I believe is mib2c output, not something we added to the
skeleton.  Has this warning been addressed in later versions?


                                     Chris
--
A: Top-posting.
Q: What is the most annoying thing in e-mail?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@list...
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.