Commit: 643b074d7dc7f722588192eea852ce2e0d0584ae
Parent: de1901565979b5f56effc34b03594bee4f757f7d
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-09-27 22:25:37
Tree: 7c85a4721bc4c4abffdc6795a48b490fbd6a7723

monitor/analyze: Fix scan-build warnings This fixes the following warnings: monitor/analyze.c:381:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:382:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:398:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:399:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:418:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:419:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*evt); ^ ~~~~~~~~~~~~ monitor/analyze.c:527:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(subtype); ^ ~~~~~~~~~~~~~~~ monitor/analyze.c:528:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(subtype); ^ ~~~~~~~~~~~~~~~ monitor/analyze.c:629:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:630:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:646:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:647:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:710:2: warning: Value stored to 'data' is never read [deadcode.DeadStores] data += sizeof(*hdr); ^ ~~~~~~~~~~~~ monitor/analyze.c:711:2: warning: Value stored to 'size' is never read [deadcode.DeadStores] size -= sizeof(*hdr); ^ ~~~~~~~~~~~~

Diffstat

M monitor/analyze.c | 28 - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 0 insertions(+), 28 deletions(-)

View Full Diff | Patch