Pelles C forum

Pelles C => Bug reports => Topic started by: TimoVJL on April 07, 2025, 12:23:27 PM

Title: pocc v13 error messages
Post by: TimoVJL on April 07, 2025, 12:23:27 PM
#if 'A' == '\301'
# define SQLITE_EBCDIC 1
#else
# define SQLITE_ASCII 1
#endif
sqlite3.c(14757): error #1032: Character constant is out of range.
32-bit project
Building mutex_w32.obj.
C:\code\PellesC13b\Include\Win\winnt.h(4008): error #2119: Redeclaration of '__memory_barrier', previously declared at C:\code\PellesC13b\Include\intrin.h(152).

Title: Re: pocc v13 error messages
Post by: Pelle on April 09, 2025, 08:25:29 AM
Quote from: TimoVJL on April 07, 2025, 12:23:27 PM[/code]
sqlite3.c(14757): error #1032: Character constant is out of range.
Looks like you need the /J compiler option...

Quote from: TimoVJL on April 07, 2025, 12:23:27 PMC:\code\PellesC13b\Include\Win\winnt.h(4008): error #2119: Redeclaration of '__memory_barrier', previously declared at C:\code\PellesC13b\Include\intrin.h(152).
Can you please check if changing line 4008 in <winnt.h>
from
void _ReadWriteBarrier(void)
to
void __cdecl _ReadWriteBarrier(void)
makes a difference?

Title: Re: pocc v13 error messages
Post by: TimoVJL on April 09, 2025, 08:45:32 AM
void __cdecl _ReadWriteBarrier(void) worked

SQLite seems to have a bugSQLITE_PRIVATE int sqlite3ShadowTableName(sqlite3 *db, const char *zName){
  char *zTail;                  /* Pointer to the last "_" in zName */
  Table *pTab;                  /* Table that zName is a shadow of */
  zTail = strrchr(zName, '_');
  if( zTail==0 ) return 0;
  *zTail = 0;
with this:const char *zName