VirtualBox

Changeset 100501 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 11, 2023 10:26:24 AM (21 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158285
Message:

Devices/EFI/Firmware: Fix building antlr with newer compilers, bugref:10400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VfrCompile/Pccts/antlr/hash.c

    r63393 r100501  
    3939
    4040#include <stdio.h>
    41 #ifdef VBOX
    42 # include <iprt/stdint.h> /* for intptr.h */
    43 #endif
    4441#include "pcctscfg.h"
    4542#include "hash.h"
     
    135132        char *p=key;
    136133        Entry *q;
    137 /*      require(table!=NULL && key!=NULL, "get: invalid table and/or key");*/
    138         if ( !(table!=NULL && key!=NULL) ) *((char *)(/*vbox:*/ intptr_t) 34) = 3;
     134#ifndef VBOX
     135        /*      require(table!=NULL && key!=NULL, "get: invalid table and/or key");*/
     136        if ( !(table!=NULL && key!=NULL) ) *((char *)34) = 3;
     137#else
     138        /*
     139         * The original construct must be some sort of release assertion making the program
     140         * crash. Unfortunately newer compilers complain about this so use exit().
     141         */
     142        require(table!=NULL && key!=NULL, "get: invalid table and/or key");
     143#endif
    139144
    140145        Hash(p,h,size);
Note: See TracChangeset for help on using the changeset viewer.

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