◐ Shell
reader mode source ↗
Skip to content

Fix warnings: -Wsubobject-linkage & -Wreturn-type#232

Open
ctrlcctrlv wants to merge 1 commit into
linuxdeploy:masterfrom
ctrlcctrlv:silence_warnings_20221112
Open

Fix warnings: -Wsubobject-linkage & -Wreturn-type#232
ctrlcctrlv wants to merge 1 commit into
linuxdeploy:masterfrom
ctrlcctrlv:silence_warnings_20221112

Conversation

@ctrlcctrlv

@ctrlcctrlv ctrlcctrlv commented Nov 12, 2022

Copy link
Copy Markdown
Contributor

Silences these two warnings:

  • In file included from ./linuxdeploy/src/appdir_test_main.cpp:10:
    ./linuxdeploy/src/core/appdir.cpp:100‌:27: warning: ‘linuxdeploy::core::appdir::AppDir::PrivateData’ has a field ‘linuxdeploy::core::appdir::AppDir::PrivateData::copyOperationsStorage’ whose type uses the anonymous namespace [-Wsubobject-linkage]
  • In member function ‘pipe_reader::result pipe_reader::read(std::vector&, std::chrono::milliseconds)’:
    ./linuxdeploy/src/subprocess/pipe_reader.cpp:59:1: warning: control reaches end of non-void function [-Wreturn-type]

./linuxdeploy/src/core/appdir.cpp:100:27: warning:
‘linuxdeploy::core::appdir::AppDir::PrivateData’ has a field
‘linuxdeploy::core::appdir::AppDir::PrivateData::copyOperationsStorage’
whose type uses the anonymous namespace [-Wsubobject-linkage]

./linuxdeploy/src/subprocess/pipe_reader.cpp: In member function
‘pipe_reader::result pipe_reader::read(std::vector<char>&,
std::chrono::milliseconds)’:
./linuxdeploy/src/subprocess/pipe_reader.cpp:59:1: warning: control
reaches end of non-void function [-Wreturn-type]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants