diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-05-02 18:25:58 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-05-20 14:18:36 +0200 |
commit | a6f8c07f83e4e5a8155c04feab543dc0c82ed495 (patch) | |
tree | c4430a4fe7d31e618cc46fde90c1e992d5617b92 /cmdline/apt-internal-solver.cc | |
parent | af859f09084b4f6163501f216ba8cc2356fb3f93 (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 'cmdline/apt-internal-solver.cc')
0 files changed, 0 insertions, 0 deletions