* clang support
This commit is contained in:
parent
f9cde509b2
commit
675e7a641a
9 changed files with 19 additions and 14 deletions
|
@ -2329,7 +2329,10 @@ A way to force a bus error for development reasons
|
|||
=================
|
||||
*/
|
||||
static void Com_Crash_f( void ) {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wnull-dereference"
|
||||
* ( int * ) 0 = 0x12345678;
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -179,7 +179,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#define OS_STRING "kFreeBSD"
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#define ID_INLINE static inline
|
||||
#else
|
||||
#define ID_INLINE inline
|
||||
#endif
|
||||
|
||||
#define PATH_SEP '/'
|
||||
|
||||
#if defined __i386__
|
||||
|
|
|
@ -1250,7 +1250,7 @@ extern int ZEXPORT unzReadCurrentFile (file, buf, len)
|
|||
return UNZ_PARAMERROR;
|
||||
|
||||
|
||||
if ((pfile_in_zip_read_info->read_buffer == NULL))
|
||||
if (pfile_in_zip_read_info->read_buffer == NULL)
|
||||
return UNZ_END_OF_LIST_OF_FILE;
|
||||
if (len==0)
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue