Fossil SCM

Silence const warning (GCC 8.1.1)

andygoth 2018-07-14 16:22 trunk
Commit 83288757e5c0c2f04332c105e5aebb0bab5debc982801e642c89b81ed290ba5f
1 file changed +1 -1
+1 -1
--- src/webmail.c
+++ src/webmail.c
@@ -483,11 +483,11 @@
483483
blob_append_sql(&sql, " ORDER BY edate DESC limit 50");
484484
db_prepare_blob(&q, &sql);
485485
blob_reset(&sql);
486486
@ <ol>
487487
while( db_step(&q)==SQLITE_ROW ){
488
- char *zId = db_column_text(&q,4);
488
+ const char *zId = db_column_text(&q,4);
489489
const char *zFrom = db_column_text(&q, 0);
490490
const char *zDate = db_column_text(&q, 1);
491491
const char *zSubject = db_column_text(&q, 3);
492492
@ <li>
493493
if( showAll ){
494494
--- src/webmail.c
+++ src/webmail.c
@@ -483,11 +483,11 @@
483 blob_append_sql(&sql, " ORDER BY edate DESC limit 50");
484 db_prepare_blob(&q, &sql);
485 blob_reset(&sql);
486 @ <ol>
487 while( db_step(&q)==SQLITE_ROW ){
488 char *zId = db_column_text(&q,4);
489 const char *zFrom = db_column_text(&q, 0);
490 const char *zDate = db_column_text(&q, 1);
491 const char *zSubject = db_column_text(&q, 3);
492 @ <li>
493 if( showAll ){
494
--- src/webmail.c
+++ src/webmail.c
@@ -483,11 +483,11 @@
483 blob_append_sql(&sql, " ORDER BY edate DESC limit 50");
484 db_prepare_blob(&q, &sql);
485 blob_reset(&sql);
486 @ <ol>
487 while( db_step(&q)==SQLITE_ROW ){
488 const char *zId = db_column_text(&q,4);
489 const char *zFrom = db_column_text(&q, 0);
490 const char *zDate = db_column_text(&q, 1);
491 const char *zSubject = db_column_text(&q, 3);
492 @ <li>
493 if( showAll ){
494

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button