#include <senf/Utils/senfassert.hh>
#include <senf/Utils/Range.hh>
#include "Server.hh"
+#include "senf/Utils/IgnoreValue.hh"
//#include "Executor.mpp"
#define prefix_
{
if (skipping())
return "";
- (void) cwd(); // ensure, cwd is live.
+ senf::IGNORE( cwd() ); // ensure, cwd is live.
return "/" + senf::stringJoin(
senf::make_transform_range(
boost::make_iterator_range(boost::next(cwd_.begin()), cwd_.end()),
SENF_LOG(( "Executing: " << command ));
if (! skipping())
- (void) cwd(); // Prune the cwd path of expired entries
+ senf::IGNORE( cwd() ); // Prune the cwd path of expired entries
try {
switch(command.builtin()) {
{
if (dir.size() == 1 && *dir.begin() == WordToken("-")) {
cwd_.swap(oldCwd_);
- (void) cwd(); // Prune any expired items
+ senf::IGNORE( cwd() ); // Prune any expired items
}
else {
// We need to use a temporary so an error somewhere while traversing the dir does not cause