summaryrefslogtreecommitdiffstats
path: root/tools/pci/Build
diff options
context:
space:
mode:
authorGustavo Pimentel <gustavo.pimentel@synopsys.com>2018-08-23 13:34:53 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-10-03 12:18:12 +0200
commitfef31ecaaf2c5c54db85b35e893bf8abec96b93f (patch)
tree1bb418de7b4c9deadab0403c980d40e629d008a1 /tools/pci/Build
parentLinux 4.19-rc4 (diff)
downloadlinux-fef31ecaaf2c5c54db85b35e893bf8abec96b93f.tar.xz
linux-fef31ecaaf2c5c54db85b35e893bf8abec96b93f.zip
tools: PCI: Fix compilation warnings
Current compilation produces the following warnings: tools/pci/pcitest.c: In function 'run_test': tools/pci/pcitest.c:56:9: warning: unused variable 'time' [-Wunused-variable] double time; ^~~~ tools/pci/pcitest.c:55:25: warning: unused variable 'end' [-Wunused-variable] struct timespec start, end; ^~~ tools/pci/pcitest.c:55:18: warning: unused variable 'start' [-Wunused-variable] struct timespec start, end; ^~~~~ tools/pci/pcitest.c:146:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Fix them: - remove unused variables - change function return from int to void, since it's not used Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com> [lorenzo.pieralisi@arm.com: rewrote the commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'tools/pci/Build')
0 files changed, 0 insertions, 0 deletions