- Supress "unused parameter" build warnings
Change-Id: Ic27d2298556ccbce75fc6a6fe4f06c1f3a544a8d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
bool AddTestUser(const char *user_name) {
std::cout << "Adding test user: " << user_name << std::endl;
bool AddTestUser(const char *user_name) {
std::cout << "Adding test user: " << user_name << std::endl;
- bool ret = AddUser(user_name);
if (boost::optional<uid_t> uid = ci::GetUidByUserName(user_name)) {
kTestUserId = *uid;
kTestUserIdStr = std::to_string(kTestUserId);
if (boost::optional<uid_t> uid = ci::GetUidByUserName(user_name)) {
kTestUserId = *uid;
kTestUserIdStr = std::to_string(kTestUserId);
uid_t test_uid;
if (boost::optional<uid_t> uid = ci::GetUidByUserName(user_name))
test_uid = *uid;
uid_t test_uid;
if (boost::optional<uid_t> uid = ci::GetUidByUserName(user_name))
test_uid = *uid;
- bool ret = DeleteUser(user_name, true);
+ DeleteUser(user_name, true);
if (!ci::GetUidByUserName(user_name)) {
std::cout << "User deleted properly: user_name=" << user_name
<< " uid=" << test_uid << std::endl;
if (!ci::GetUidByUserName(user_name)) {
std::cout << "User deleted properly: user_name=" << user_name
<< " uid=" << test_uid << std::endl;