Skip to content

Commit

Permalink
Fix unused function build error when USE_LIBPCI unset
Browse files Browse the repository at this point in the history
IsPciSupported() is unused and causes a warning which is treated as an
error during some cast_shell builds.

BUG=436104
TEST=cast_shell compiles and runs on Linux desktop

Review URL: https://codereview.chromium.org/751033003

Cr-Commit-Position: refs/heads/master@{#305498}
  • Loading branch information
jamescook authored and Commit bot committed Nov 24, 2014
1 parent 81455ad commit 9216782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpu/config/gpu_info_collector_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace gpu {

namespace {

#if defined(USE_LIBPCI)
// This checks if a system supports PCI bus.
// We check the existence of /sys/bus/pci or /sys/bug/pci_express.
bool IsPciSupported() {
Expand All @@ -39,6 +40,7 @@ bool IsPciSupported() {
return (base::PathExists(pci_path) ||
base::PathExists(pcie_path));
}
#endif // defined(USE_LIBPCI)

// Scan /etc/ati/amdpcsdb.default for "ReleaseVersion".
// Return empty string on failing.
Expand Down

0 comments on commit 9216782

Please sign in to comment.