Предупреждения при сборке библиотеки

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Start in src/helpers/path.cpp at get_current_working_directory(), specifically the getcwd call reported at line 16. Run the project build to reproduce the warning, then verify that the build completes without this warning after the issue is addressed.

Written by the indexing model from the issue text.

Description

/home/ormprobot/libmimes/src/helpers/path.cpp: In static member function ‘static std::__cxx11::string helpers::path::get_current_working_directory()’:
/home/ormprobot/libmimes/src/helpers/path.cpp:16:35: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
getcwd(buff, FILENAME_MAX);
^
/home/ormprobot/libmimes/src/helpers/path.cpp: In static member function ‘static std::__cxx11::string helpers::path::get_current_working_directory()’:
/home/ormprobot/libmimes/src/helpers/path.cpp:16:35: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
getcwd(buff, FILENAME_MAX);

Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DirectumCompany/libmimes

All issues in DirectumCompany/libmimes

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.