summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-02 18:25:58 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-20 14:18:36 +0200
commita6f8c07f83e4e5a8155c04feab543dc0c82ed495 (patch)
treec4430a4fe7d31e618cc46fde90c1e992d5617b92 /apt-pkg/policy.cc
parentaf859f09084b4f6163501f216ba8cc2356fb3f93 (diff)
avoid triggering gcc's -Wunsafe-loop-optimizations in EDSP
apt/apt-pkg/edsp.cc: In function ‘bool EDSP::WriteLimitedScenario(pkgDepCache&, FILE*, const PackageSet&, OpProgress*)’: apt/apt-pkg/edsp.cc:245:56: warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations] std::string dependencies[pkgCache::Dep::Enhances + 1]; ^ Using a std::array to silence gcc as well as as a code improvement feels right here. Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/policy.cc')
0 files changed, 0 insertions, 0 deletions