Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation warnings #181

Open
l1x opened this issue Jun 2, 2023 · 0 comments
Open

Compilation warnings #181

l1x opened this issue Jun 2, 2023 · 0 comments

Comments

@l1x
Copy link

l1x commented Jun 2, 2023

Are these normal?

SOPHIA 2.2 (git: 941cc49)

sophia/build
cc sophia.c -c -DSS_INJECTION_ENABLE -g -O2 -std=c99 -pedantic -Wextra -Wall
sophia/std/ss_lz4filter.c: In function 'LZ4_compressHC2':
sophia/std/ss_lz4filter.c:3607:88: warning: implicit conversion from 'enum <anonymous>' to 'limitedOutput_directive' [-Wenum-conversion]
 3607 |     return LZ4HC_compress_generic (&ctx, source, dest, inputSize, 0, compressionLevel, noLimit);
      |                                                                                        ^~~~~~~
sophia/std/ss_lz4filter.c: In function 'LZ4_compressHC2_withStateHC':
sophia/std/ss_lz4filter.c:3635:89: warning: implicit conversion from 'enum <anonymous>' to 'limitedOutput_directive' [-Wenum-conversion]
 3635 |     return LZ4HC_compress_generic (state, source, dest, inputSize, 0, compressionLevel, noLimit);
      |                                                                                         ^~~~~~~
sophia/std/ss_lz4filter.c: In function 'LZ4_compressHC_continue':
sophia/std/ss_lz4filter.c:3738:113: warning: implicit conversion from 'enum <anonymous>' to 'limitedOutput_directive' [-Wenum-conversion]
 3738 |     return LZ4_compressHC_continue_generic ((LZ4HC_Data_Structure*)LZ4_streamHCPtr, source, dest, inputSize, 0, noLimit);
      |                                                                                                                 ^~~~~~~
sophia/std/ss_lz4filter.c: In function 'LZ4_compressHC2_continue':
sophia/std/ss_lz4filter.c:3807:94: warning: implicit conversion from 'enum <anonymous>' to 'limitedOutput_directive' [-Wenum-conversion]
 3807 |     return LZ4HC_compress_generic (LZ4HC_Data, source, dest, inputSize, 0, compressionLevel, noLimit);
      |                                                                                              ^~~~~~~
sophia/std/ss_lz4filter.c: In function 'ss_lz4filter_init':
sophia/std/ss_lz4filter.c:5224:52: warning: taking address of packed member of 'struct sslz4filter' may result in an unaligned pointer value [-Waddress-of-packed-member]
 5224 |                 rc = LZ4F_createCompressionContext(&z->ctx, LZ4F_VERSION);
      |                                                    ^~~~~~~
sophia/std/ss_lz4filter.c:5227:54: warning: taking address of packed member of 'struct sslz4filter' may result in an unaligned pointer value [-Waddress-of-packed-member]
 5227 |                 rc = LZ4F_createDecompressionContext(&z->ctx, LZ4F_VERSION);
      |                                                      ^~~~~~~
sophia/format/sf.h: In function 'sf_comparable_write':
sophia/format/sf.h:216:52: warning: taking address of packed member of 'struct sfvar' may result in an unaligned pointer value [-Waddress-of-packed-member]
  216 |                 char *ptr = sf_fieldptr(s, f, src, &var->size);
      |                                                    ^~~~~~~~~~
sophia/version/sv_merge.h: In function 'sv_mergeadd':
sophia/version/sv_merge.h:68:24: warning: taking address of packed member of 'struct svmergesrc' may result in an unaligned pointer value [-Waddress-of-packed-member]
   68 |                 s->i = &s->src;
      |                        ^~~~~~~
sophia/version/sv_indexiter.h: In function 'sv_indexiter_open':
sophia/version/sv_indexiter.h:38:70: warning: taking address of packed member of 'struct svindexiter' may result in an unaligned pointer value [-Waddress-of-packed-member]
   38 |                 rc = sv_indexmatch(&ii->index->i, r->scheme, key, 0, &ii->v);
      |                                                                      ^~~~~~
sophia/version/sv_indexiter.h:58:70: warning: taking address of packed member of 'struct svindexiter' may result in an unaligned pointer value [-Waddress-of-packed-member]
   58 |                 rc = sv_indexmatch(&ii->index->i, r->scheme, key, 0, &ii->v);
      |                                                                      ^~~~~~
sophia/wal/sw_iter.c: In function 'sw_iter_open':
sophia/wal/sw_iter.c:149:37: warning: taking address of packed member of 'struct switer' may result in an unaligned pointer value [-Waddress-of-packed-member]
  149 |         int rc = ss_vfsmmap(r->vfs, &li->map, li->log->fd, li->log->size, 1);
      |                                     ^~~~~~~~
sophia/std/ss_vfs.h:81:68: note: in definition of macro 'ss_vfsmmap'
   81 | #define ss_vfsmmap(fs, m, fd, size, ro)          (fs)->i->mmap(fs, m, fd, size, ro)
      |                                                                    ^
sophia/wal/sw_iter.c:158:38: warning: taking address of packed member of 'struct switer' may result in an unaligned pointer value [-Waddress-of-packed-member]
  158 |                 ss_vfsmunmap(r->vfs, &li->map);
      |                                      ^~~~~~~~
sophia/std/ss_vfs.h:84:70: note: in definition of macro 'ss_vfsmunmap'
   84 | #define ss_vfsmunmap(fs, m)                      (fs)->i->munmap(fs, m)
      |                                                                      ^
sophia/wal/sw_iter.c: In function 'sw_iter_close':
sophia/wal/sw_iter.c:166:34: warning: taking address of packed member of 'struct switer' may result in an unaligned pointer value [-Waddress-of-packed-member]
  166 |         ss_vfsmunmap(li->r->vfs, &li->map);
      |                                  ^~~~~~~~
sophia/std/ss_vfs.h:84:70: note: in definition of macro 'ss_vfsmunmap'
   84 | #define ss_vfsmunmap(fs, m)                      (fs)->i->munmap(fs, m)
      |                                                                      ^
sophia/database/sd_read.h: In function 'sd_read_page':
sophia/database/sd_read.h:47:26: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
   47 |         sdreadarg *arg = &i->ra;
      |                          ^~~~~~
sophia/database/sd_read.h:98:29: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
   98 |                 sd_pageinit(&i->page, (sdpageheader*)arg->buf->s);
      |                             ^~~~~~~~
sophia/database/sd_read.h:106:37: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
  106 |                         sd_pageinit(&i->page, (sdpageheader*)(arg->buf->s));
      |                                     ^~~~~~~~
sophia/database/sd_read.h:108:37: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
  108 |                         sd_pageinit(&i->page, (sdpageheader*)(arg->mmap->p + ref->offset));
      |                                     ^~~~~~~~
sophia/database/sd_read.h:121:21: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
  121 |         sd_pageinit(&i->page, (sdpageheader*)page_pointer);
      |                     ^~~~~~~~
sophia/database/sd_read.h: In function 'sd_read_openpage':
sophia/database/sd_read.h:128:26: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
  128 |         sdreadarg *arg = &i->ra;
      |                          ^~~~~~
sophia/database/sd_read.h:135:28: warning: taking address of packed member of 'struct sdread' may result in an unaligned pointer value [-Waddress-of-packed-member]
  135 |                            &i->page, arg->o, key);
      |                            ^~~~~~~~
sophia/std/ss_iter.h:32:64: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                                ^~~~~~~~~~~
sophia/database/sd_iter.c: In function 'sd_iter_open':
sophia/database/sd_iter.c:74:37: warning: taking address of packed member of 'struct sditer' may result in an unaligned pointer value [-Waddress-of-packed-member]
   74 |         int rc = ss_vfsmmap(r->vfs, &ri->map, ri->file->fd, ri->file->size, 1);
      |                                     ^~~~~~~~
sophia/std/ss_vfs.h:81:68: note: in definition of macro 'ss_vfsmmap'
   81 | #define ss_vfsmmap(fs, m, fd, size, ro)          (fs)->i->mmap(fs, m, fd, size, ro)
      |                                                                    ^
sophia/database/sd_iter.c:86:38: warning: taking address of packed member of 'struct sditer' may result in an unaligned pointer value [-Waddress-of-packed-member]
   86 |                 ss_vfsmunmap(r->vfs, &ri->map);
      |                                      ^~~~~~~~
sophia/std/ss_vfs.h:84:70: note: in definition of macro 'ss_vfsmunmap'
   84 | #define ss_vfsmunmap(fs, m)                      (fs)->i->munmap(fs, m)
      |                                                                      ^
sophia/database/sd_iter.c: In function 'sd_iterclose':
sophia/database/sd_iter.c:94:34: warning: taking address of packed member of 'struct sditer' may result in an unaligned pointer value [-Waddress-of-packed-member]
   94 |         ss_vfsmunmap(ri->r->vfs, &ri->map);
      |                                  ^~~~~~~~
sophia/std/ss_vfs.h:84:70: note: in definition of macro 'ss_vfsmunmap'
   84 | #define ss_vfsmunmap(fs, m)                      (fs)->i->munmap(fs, m)
      |                                                                      ^
sophia/index/si_node.h: In function 'si_nodecmp':
sophia/index/si_node.h:139:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  139 |         sdindexpage *min = sd_indexmin(&n->index);
      |                                        ^~~~~~~~~
sophia/index/si_node.h:140:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  140 |         sdindexpage *max = sd_indexmax(&n->index);
      |                                        ^~~~~~~~~
sophia/index/si_node.h:141:48: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  141 |         int l = sf_compare(s, sd_indexpage_min(&n->index, min), key);
      |                                                ^~~~~~~~~
sophia/index/si_node.h:142:48: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  142 |         int r = sf_compare(s, sd_indexpage_max(&n->index, max), key);
      |                                                ^~~~~~~~~
sophia/index/si_tx.h: In function 'si_txtrack':
sophia/index/si_tx.h:25:26: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   25 |         if (ss_listempty(&n->commit))
      |                          ^~~~~~~~~~
sophia/index/si_tx.h:26:45: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   26 |                 ss_listappend(&x->nodelist, &n->commit);
      |                                             ^~~~~~~~~~
sophia/index/si_iter.h: In function 'si_iter_open':
sophia/index/si_iter.h:56:65: warning: taking address of packed member of 'struct siiter' may result in an unaligned pointer value [-Waddress-of-packed-member]
   56 |         rc = si_itermatch(&ii->index->i, r->scheme, ii->key, 0, &ii->v);
      |                                                                 ^~~~~~
sophia/index/si.c: In function 'si_match':
sophia/index/si.c:79:50: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   79 |                                      sd_indexmin(&(sscast(n, sinode, node))->index)),
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_rb.h:50:32: note: in definition of macro 'ss_rbget'
   50 |                 switch ((rc = (compare))) { \
      |                                ^~~~~~~
sophia/index/si.c:78:38: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   78 |                     sd_indexpage_min(&(sscast(n, sinode, node))->index,
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_rb.h:50:32: note: in definition of macro 'ss_rbget'
   50 |                 switch ((rc = (compare))) { \
      |                                ^~~~~~~
sophia/index/si.c: In function 'si_insert':
sophia/index/si.c:84:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   84 |         sdindexpage *min = sd_indexmin(&n->index);
      |                                        ^~~~~~~~~
sophia/index/si.c:87:44: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   87 |                           sd_indexpage_min(&n->index, min),
      |                                            ^~~~~~~~~
sophia/index/si_compaction.c: In function 'si_redistribute':
sophia/index/si_compaction.c:61:57: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   61 |                         sdindexpage *page = sd_indexmin(&p->index);
      |                                                         ^~~~~~~~~
sophia/index/si_compaction.c:63:58: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   63 |                                         sd_indexpage_min(&p->index, page));
      |                                                          ^~~~~~~~~
sophia/index/si_compaction.c: In function 'si_merge':
sophia/index/si_compaction.c:374:43: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  374 |                 ss_listappend(&index->gc, &node->gc);
      |                                           ^~~~~~~~~
sophia/index/si_compaction.c: In function 'si_compaction':
sophia/index/si_compaction.c:453:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  453 |                 .index               = &node->index,
      |                                        ^~~~~~~~~~~~
sophia/index/si_compaction.c:467:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  467 |                 .mmap                = &node->map,
      |                                        ^~~~~~~~~~
sophia/index/si_compaction.c:472:35: warning: taking address of packed member of 'struct svmergesrc' may result in an unaligned pointer value [-Waddress-of-packed-member]
  472 |         rc = ss_iteropen(sd_read, &s->src, &arg, NULL);
      |                                   ^~~~~~~
sophia/std/ss_iter.h:32:61: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                             ^
sophia/index/si_compaction.c:475:38: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  475 |         size_stream += sd_indextotal(&node->index);
      |                                      ^~~~~~~~~~~~
sophia/index/si_compaction.c:481:36: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  481 |                       sd_indexkeys(&node->index));
      |                                    ^~~~~~~~~~~~
sophia/index/si_node.c: In function 'si_nodenew':
sophia/index/si_node.c:34:22: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   34 |         sd_indexinit(&n->index);
      |                      ^~~~~~~~~
sophia/index/si_node.c:36:21: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   36 |         ss_mmapinit(&n->map);
      |                     ^~~~~~~
sophia/index/si_node.c:37:21: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   37 |         ss_mmapinit(&n->map_swap);
      |                     ^~~~~~~~~~~~
sophia/index/si_node.c:41:23: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   41 |         ss_rqinitnode(&n->nodememory);
      |                       ^~~~~~~~~~~~~~
sophia/index/si_node.c:42:21: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   42 |         ss_listinit(&n->gc);
      |                     ^~~~~~
sophia/index/si_node.c:43:21: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   43 |         ss_listinit(&n->commit);
      |                     ^~~~~~~~~~
sophia/index/si_node.c: In function 'si_nodeclose':
sophia/index/si_node.c:63:39: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   63 |         int rc = ss_vfsmunmap(r->vfs, &n->map);
      |                                       ^~~~~~~
sophia/std/ss_vfs.h:84:70: note: in definition of macro 'ss_vfsmunmap'
   84 | #define ss_vfsmunmap(fs, m)                      (fs)->i->munmap(fs, m)
      |                                                                      ^
sophia/index/si_node.c: In function 'si_nodemap':
sophia/index/si_node.c:166:37: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  166 |         int rc = ss_vfsmmap(r->vfs, &n->map, n->file.fd, n->file.size, 1);
      |                                     ^~~~~~~
sophia/std/ss_vfs.h:81:68: note: in definition of macro 'ss_vfsmmap'
   81 | #define ss_vfsmmap(fs, m, fd, size, ro)          (fs)->i->mmap(fs, m, fd, size, ro)
      |                                                                    ^
sophia/index/si_node.c: In function 'si_nodefree':
sophia/index/si_node.c:190:22: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  190 |         sd_indexfree(&n->index, r);
      |                      ^~~~~~~~~
sophia/index/si_planner.c: In function 'si_plannerupdate':
sophia/index/si_planner.c:75:33: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   75 |         ss_rqupdate(&p->memory, &n->nodememory, n->used);
      |                                 ^~~~~~~~~~~~~~
sophia/index/si_planner.c: In function 'si_plannerremove':
sophia/index/si_planner.c:81:33: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   81 |         ss_rqdelete(&p->memory, &n->nodememory);
      |                                 ^~~~~~~~~~~~~~
sophia/index/si_planner.c: In function 'si_plannerpeek_nodegc':
sophia/index/si_planner.c:243:39: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  243 |                         ss_listunlink(&n->gc);
      |                                       ^~~~~~
sophia/index/si_read.c: In function 'si_getfile':
sophia/index/si_read.c:150:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  150 |                 .index               = &n->index,
      |                                        ^~~~~~~~~
sophia/index/si_read.c:164:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  164 |                 .mmap                = &n->map,
      |                                        ^~~~~~~
sophia/index/si_read.c: In function 'si_rangefile':
sophia/index/si_read.c:250:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  250 |                 .index               = &n->index,
      |                                        ^~~~~~~~~
sophia/index/si_read.c:264:40: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  264 |                 .mmap                = &n->map,
      |                                        ^~~~~~~
sophia/index/si_read.c: In function 'si_range':
sophia/index/si_read.c:314:44: warning: taking address of packed member of 'struct svmergesrc' may result in an unaligned pointer value [-Waddress-of-packed-member]
  314 |                 ss_iteropen(ss_bufiterref, &s->src, &upsert_stream, sizeof(char**));
      |                                            ^~~~~~~
sophia/std/ss_iter.h:32:61: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                             ^
sophia/index/si_read.c:323:43: warning: taking address of packed member of 'struct svmergesrc' may result in an unaligned pointer value [-Waddress-of-packed-member]
  323 |                 ss_iteropen(sv_indexiter, &s->src, q->r, first, q->order,
      |                                           ^~~~~~~
sophia/std/ss_iter.h:32:61: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                             ^
sophia/index/si_read.c:329:43: warning: taking address of packed member of 'struct svmergesrc' may result in an unaligned pointer value [-Waddress-of-packed-member]
  329 |                 ss_iteropen(sv_indexiter, &s->src, q->r, second, q->order,
      |                                           ^~~~~~~
sophia/std/ss_iter.h:32:61: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                             ^
sophia/index/si_read.c: In function 'si_readcommited':
sophia/index/si_read.c:417:42: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
  417 |         ss_iteropen(sd_indexiter, &i, r, &node->index, SS_GTE,
      |                                          ^~~~~~~~~~~~
sophia/std/ss_iter.h:32:64: note: in definition of macro 'ss_iteropen'
   32 | #define ss_iteropen(iterator_if, i, ...) iterator_if##_open(i, __VA_ARGS__)
      |                                                                ^~~~~~~~~~~
sophia/index/si_tx.c: In function 'si_commit':
sophia/index/si_tx.c:32:29: warning: taking address of packed member of 'struct sinode' may result in an unaligned pointer value [-Waddress-of-packed-member]
   32 |                 ss_listinit(&node->commit);
      |                             ^~~~~~~~~~~~~
sophia/scheduler/sc_worker.h: In function 'sc_workerpool_push':
sophia/scheduler/sc_worker.h:60:35: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   60 |         ss_listpush(&p->listidle, &w->linkidle);
      |                                   ^~~~~~~~~~~~
sophia/scheduler/sc_backup.c: In function 'sc_backupend':
sophia/scheduler/sc_backup.c:105:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  105 |         ss_trace(&w->trace, "%s", "log rotation for backup");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_backup.c:111:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  111 |         ss_trace(&w->trace, "%s", "log files backup");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_backup.c:116:42: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  116 |         rc = sw_managercopy(s->wm, path, &w->dc.c);
      |                                          ^~~~~~~~
sophia/scheduler/sc_ctl.c: In function 'sc_ctl_compaction':
sophia/scheduler/sc_ctl.c:49:40: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   49 |                 rc = si_execute(index, &w->dc, &plan, vlsn);
      |                                        ^~~~~~
sophia/scheduler/sc_step.c: In function 'sc_rotate':
sophia/scheduler/sc_step.c:24:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   24 |         ss_trace(&w->trace, "%s", "log rotation");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_step.c: In function 'sc_gc':
sophia/scheduler/sc_step.c:37:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   37 |         ss_trace(&w->trace, "%s", "log gc");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_step.c: In function 'sc_execute':
sophia/scheduler/sc_step.c:48:53: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   48 |         si_plannertrace(&t->plan, index->scheme.id, &w->trace);
      |                                                     ^~~~~~~~~
sophia/scheduler/sc_step.c:49:34: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   49 |         return si_execute(index, &w->dc, &t->plan, vlsn);
      |                                  ^~~~~~
sophia/scheduler/sc_step.c: In function 'sc_do':
sophia/scheduler/sc_step.c:111:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  111 |         ss_trace(&task->w->trace, "%s", "schedule");
      |                  ^~~~~~~~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_step.c: In function 'sc_step':
sophia/scheduler/sc_step.c:310:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  310 |         ss_trace(&w->trace, "%s", "sleep");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_step.c:313:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  313 |         ss_trace(&w->trace, "%s", "malfunction");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_worker.c: In function 'sc_workernew':
sophia/scheduler/sc_worker.c:30:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   30 |         sd_cinit(&w->dc);
      |                  ^~~~~~
sophia/scheduler/sc_worker.c:31:21: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   31 |         ss_listinit(&w->link);
      |                     ^~~~~~~~
sophia/scheduler/sc_worker.c:32:21: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   32 |         ss_listinit(&w->linkidle);
      |                     ^~~~~~~~~~~~
sophia/scheduler/sc_worker.c:33:22: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   33 |         ss_traceinit(&w->trace);
      |                      ^~~~~~~~~
sophia/scheduler/sc_worker.c:34:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   34 |         ss_trace(&w->trace, "%s", "init");
      |                  ^~~~~~~~~
sophia/std/ss_trace.h:72:21: note: in definition of macro 'ss_trace'
   72 |         ss_traceset(t, __FILE__, __func__, __LINE__, fmt, __VA_ARGS__)
      |                     ^
sophia/scheduler/sc_worker.c: In function 'sc_workerfree':
sophia/scheduler/sc_worker.c:41:18: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   41 |         sd_cfree(&w->dc, r);
      |                  ^~~~~~
sophia/scheduler/sc_worker.c:42:22: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   42 |         ss_tracefree(&w->trace);
      |                      ^~~~~~~~~
sophia/scheduler/sc_worker.c: In function 'sc_workerpool_new':
sophia/scheduler/sc_worker.c:71:33: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   71 |         ss_listappend(&p->list, &w->link);
      |                                 ^~~~~~~~
sophia/scheduler/sc_worker.c:72:37: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
   72 |         ss_listappend(&p->listidle, &w->linkidle);
      |                                     ^~~~~~~~~~~~
sophia/environment/se_conf.c: In function 'se_confscheduler_trace':
sophia/environment/se_conf.c:140:37: warning: taking address of packed member of 'struct scworker' may result in an unaligned pointer value [-Waddress-of-packed-member]
  140 |         int tracelen = ss_tracecopy(&w->trace, tracesz, sizeof(tracesz));
      |                                     ^~~~~~~~~
sophia/std/ss_lz4filter.c: In function 'LZ4F_decompress':
sophia/std/ss_lz4filter.c:4826:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
 4826 |                 dctxPtr->dStage = dstage_storeHeader;
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
sophia/std/ss_lz4filter.c:4829:9: note: here
 4829 |         case dstage_storeHeader:
      |         ^~~~
sophia/std/ss_zstdfilter.c: In function 'FSE_initDStream':
sophia/std/ss_zstdfilter.c:1636:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1636 |             case 7: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[6]) << (sizeof(bitD_t)*8 - 16);
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1637:13: note: here
 1637 |             case 6: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[5]) << (sizeof(bitD_t)*8 - 24);
      |             ^~~~
sophia/std/ss_zstdfilter.c:1637:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1637 |             case 6: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[5]) << (sizeof(bitD_t)*8 - 24);
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1638:13: note: here
 1638 |             case 5: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[4]) << (sizeof(bitD_t)*8 - 32);
      |             ^~~~
sophia/std/ss_zstdfilter.c:1638:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1638 |             case 5: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[4]) << (sizeof(bitD_t)*8 - 32);
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1639:13: note: here
 1639 |             case 4: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[3]) << 24;
      |             ^~~~
sophia/std/ss_zstdfilter.c:1639:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1639 |             case 4: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[3]) << 24;
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1640:13: note: here
 1640 |             case 3: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[2]) << 16;
      |             ^~~~
sophia/std/ss_zstdfilter.c:1640:40: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1640 |             case 3: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[2]) << 16;
      |                     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1641:13: note: here
 1641 |             case 2: bitD->bitContainer += (bitD_t)(((BYTE*)(bitD->start))[1]) <<  8;
      |             ^~~~
sophia/database/sd_pageiter.h: In function 'sd_pageiter_gt':
sophia/database/sd_pageiter.h:119:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  119 |                         if (e) {
      |                            ^
sophia/database/sd_pageiter.h:122:17: note: here
  122 |                 case -1:
      |                 ^~~~
sophia/database/sd_pageiter.h: In function 'sd_pageiter_lt':
sophia/database/sd_pageiter.h:146:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
  146 |                         if (e) {
      |                            ^
sophia/database/sd_pageiter.h:149:17: note: here
  149 |                 case 1:
      |                 ^~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'sr_confexec_serialize',
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9,
    inlined from 'sr_confexec_serialize' at sophia/runtime/sr_conf.c:281:9:
sophia/runtime/sr_conf.c:276:54: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                                                      ^~~~~~~
sophia/runtime/sr_conf.c:276:25: note: 'snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
  276 |                         snprintf(path, sizeof(path), "%s.%s", root, c->key);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c: In function 'ZSTD_compressSequences':
sophia/std/ss_zstdfilter.c:1949:30: warning: 'offsetBits_start' may be used uninitialized [-Wmaybe-uninitialized]
 1949 |     return FSE_FUNCTION_NAME(FSE_count_generic, FSE_FUNCTION_EXTENSION) (count, source, sourceSize, maxSymbolValuePtr, 0);
      |                              ^~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1869:26: note: by argument 2 of type 'const BYTE *' {aka 'const unsigned char *'} to 'FSE_count_generic' declared here
 1869 | size_t FSE_FUNCTION_NAME(FSE_count_generic, FSE_FUNCTION_EXTENSION) (unsigned* count, const FSE_FUNCTION_TYPE* source, size_t sourceSize, unsigned* maxSymbolValuePtr, unsigned safe)
      |                          ^~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:1863:22: note: in definition of macro 'FSE_CAT'
 1863 | #define FSE_CAT(X,Y) X##Y
      |                      ^
sophia/std/ss_zstdfilter.c:1869:8: note: in expansion of macro 'FSE_FUNCTION_NAME'
 1869 | size_t FSE_FUNCTION_NAME(FSE_count_generic, FSE_FUNCTION_EXTENSION) (unsigned* count, const FSE_FUNCTION_TYPE* source, size_t sourceSize, unsigned* maxSymbolValuePtr, unsigned safe)
      |        ^~~~~~~~~~~~~~~~~
sophia/std/ss_zstdfilter.c:2756:10: note: 'offsetBits_start' declared here
 2756 |     BYTE offsetBits_start[BLOCKSIZE / 4];
      |          ^~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant