Skip to content

Commit 2c31179

Browse files
committed
Fix compiler error for char subscripts
1 parent 1244d9a commit 2c31179

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Sqlite3Esp32
2-
version=2.1
2+
version=2.2
33
author=Arundale Ramanathan
44
maintainer=Arun <[email protected]>
55
sentence=Sqlite3 database library for ESP32 core

src/shox96_0_2.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
* @author Arundale R.
1717
*
1818
*/
19+
#pragma GCC diagnostic push
20+
#pragma GCC diagnostic ignored "-Wunused-value"
21+
#pragma GCC diagnostic ignored "-Wunused-label"
22+
#pragma GCC diagnostic ignored "-Wchar-subscripts"
23+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
24+
1925
#include <time.h>
2026
#include <stdio.h>
2127
#include <string.h>
@@ -492,3 +498,4 @@ int shox96_0_2_decompress(const char *in, int len, char *out, struct lnk_lst *pr
492498
return ol;
493499

494500
}
501+
#pragma GCC diagnostic pop

src/sqlite3.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#pragma GCC diagnostic push
2+
#pragma GCC diagnostic ignored "-Wunused-value"
3+
#pragma GCC diagnostic ignored "-Wunused-label"
4+
#pragma GCC diagnostic ignored "-Wchar-subscripts"
5+
16
#include "config_ext.h"
27
/******************************************************************************
38
** This file is an amalgamation of many separate C source files from SQLite
@@ -228446,10 +228451,11 @@ SQLITE_API int sqlite3_stmt_init(
228446228451
#endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_STMTVTAB) */
228447228452

228448228453
/************** End of stmt.c ************************************************/
228449-
#if __LINE__!=228443
228454+
#if __LINE__!=228454
228450228455
#undef SQLITE_SOURCE_ID
228451228456
#define SQLITE_SOURCE_ID "2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837balt2"
228452228457
#endif
228453228458
/* Return the source-id for this library */
228454228459
SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }
228455228460
/************************** End of sqlite3.c ******************************/
228461+
#pragma GCC diagnostic pop

src/unishox1.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
*
1818
*/
1919

20+
#pragma GCC diagnostic push
21+
#pragma GCC diagnostic ignored "-Wunused-value"
22+
#pragma GCC diagnostic ignored "-Wunused-label"
23+
#pragma GCC diagnostic ignored "-Wchar-subscripts"
24+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
25+
2026
#define UNISHOX_VERSION "1.0"
2127

2228
#ifdef _MSC_VER
@@ -1168,3 +1174,4 @@ printf("\nElapsed: %0.3lf ms\n", timedifference(tStart, getTimeVal()));
11681174
return 0;
11691175

11701176
}
1177+
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)