-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
g++ -std=c++17 -Wall -Wextra -I./include -fPIE -O2 -c -o src/base/cc.o src/base/cc.cpp
In file included from src/base/cc.cpp:4:
./include/utils.hpp: In function 'std::string execute_command(std::string_view)':
./include/utils.hpp:17:44: warning: ignoring attributes on template argument 'int (*)(FILE*)' [-Wignored-attributes]
17 | std::unique_ptr<FILE, decltype(&pclose)> pipe(
| ^
In file included from src/base/cc.cpp:4:
./include/utils.hpp: In function 'std::string execute_command(std::string_view)':
./include/utils.hpp:17:44: warning: ignoring attributes on template argument 'int (*)(FILE*)' [-Wignored-attributes]
17 | std::unique_ptr<FILE, decltype(&pclose)> pipe(
| ^
g++ -std=c++17 -Wall -Wextra -I./include -fPIE -O2 -c -o src/base/disasm.o src/base/disasm.cpp
In file included from src/base/disasm.cpp:3:
./include/utils.hpp: In function 'std::string execute_command(std::string_view)':
./include/utils.hpp:17:44: warning: ignoring attributes on template argument 'int (*)(FILE*)' [-Wignored-attributes]
17 | std::unique_ptr<FILE, decltype(&pclose)> pipe(
| ^
在合并最新的上游仓库后,将作业提交到GitHub后,检测过程中会出现对cc.cpp和utils.hpp的警告。请问我要忽略它们吗?
Originally posted by @luchen022 in #27
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers