VirtualBox

Changeset 62835 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 1, 2016 4:41:36 PM (8 years ago)
Author:
vboxsync
Message:

ExtPacks/dtrace: warnings

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c

    r62827 r62835  
    152152        yylineno = idp->di_lineno;
    153153        xyerror(D_PRAGMA_UNUSED, "unused #pragma %s\n", (char *)idp->di_iarg);
     154#ifndef _MSC_VER /* unreachable */
    154155        return (0);
     156#endif
    155157}
    156158
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_parser.c

    r62829 r62835  
    47774777
    47784778/*PRINTFLIKE3*/
    4779 void
     4779DECL_NO_RETURN(void)
    47804780dnerror(const dt_node_t *dnp, dt_errtag_t tag, const char *format, ...)
    47814781{
     
    48104810
    48114811/*PRINTFLIKE2*/
    4812 void
     4812DECL_NO_RETURN(void)
    48134813xyerror(dt_errtag_t tag, const char *format, ...)
    48144814{
     
    48444844
    48454845/*PRINTFLIKE1*/
    4846 void
     4846DECL_NO_RETURN(void)
    48474847yyerror(const char *format, ...)
    48484848{
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_parser.h

    r53652 r62835  
    266266} yystate_t;
    267267
    268 extern void dnerror(const dt_node_t *, dt_errtag_t, const char *, ...);
     268extern DECL_NO_RETURN(void) dnerror(const dt_node_t *, dt_errtag_t, const char *, ...);
    269269extern void dnwarn(const dt_node_t *, dt_errtag_t, const char *, ...);
    270270
    271 extern void xyerror(dt_errtag_t, const char *, ...);
     271extern DECL_NO_RETURN(void) xyerror(dt_errtag_t, const char *, ...);
    272272extern void xywarn(dt_errtag_t, const char *, ...);
    273273extern void xyvwarn(dt_errtag_t, const char *, va_list);
    274274
    275 extern void yyerror(const char *, ...);
     275extern DECL_NO_RETURN(void) yyerror(const char *, ...);
    276276extern void yywarn(const char *, ...);
    277277extern void yyvwarn(const char *, va_list);
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_provider.c

    r62829 r62835  
    155155        size_t newsize = BT_SIZEOFMAP(dtp->dt_xlatorid);
    156156
     157#ifdef VBOX /* range */
     158        assert(id < dtp->dt_xlatorid);
     159#else
    157160        assert(id >= 0 && id < dtp->dt_xlatorid);
     161#endif
    158162
    159163        if (newsize > oldsize) {
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_xlator.c

    r62829 r62835  
    354354dt_xlator_lookup_id(dtrace_hdl_t *dtp, id_t id)
    355355{
     356#ifdef VBOX /* range */
     357        assert(id < dtp->dt_xlatorid);
     358#else
    356359        assert(id >= 0 && id < dtp->dt_xlatorid);
     360#endif
    357361        return (dtp->dt_xlatormap[id]);
    358362}
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mknames.sed

    r53658 r62835  
    2020i\const char *dtrace_subrstr(dtrace_hdl_t *dtp, int subr)
    2121i\{
     22i\    (void)dtp;
    2223i\    switch (subr)
    2324i\    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette