tpm2-software / tpm2-totp

Attest the trustworthiness of a device against a human using time-based one-time passwords
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
163 stars 36 forks source link

build: cleanup DISTCLEANFILES and add -O2 #49

Closed diabonas closed 5 years ago

diabonas commented 5 years ago
codecov[bot] commented 5 years ago

Codecov Report

Merging #49 into master will decrease coverage by 0.09%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #49     +/-   ##
=========================================
- Coverage   80.48%   80.38%   -0.1%     
=========================================
  Files           5        5             
  Lines         820      821      +1     
=========================================
  Hits          660      660             
- Misses        160      161      +1
Impacted Files Coverage Δ
src/tpm2-totp.c 81.73% <50%> (-0.4%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2abbb2a...41b95aa. Read the comment docs.

diabonas commented 5 years ago

Enabling -O2 produces a false positive scan-build warning for Travis CI, similar to #32. To fix this, explicitly check that str is not NULL, which at the same time obviates the need to initialise saveptr in #33.