-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 6 warnings are for not checking return values from system calls that indicate errors through the return value. Fix by checking the returns properly. * 2 warnings are for converting `NULL` to `0`; fix by using 0 where a `uint64_t` is expected and `nullptr` otherwise. * 2 warnings related to `memset` usage appear to be spurious, and the gcc compiler has had similar spurious warnings before, so I'll ignore them and leave a maintainer note. Original warning messages below: Core/ClientSML/src/sml_ClientAgent.cpp:1538:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] Core/ClientSML/src/sml_ClientAgent.cpp:1708:15: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] Core/SoarKernel/src/explanation_based_chunking/ebc_identity.cpp:92:94: warning: converting to non-pointer type ‘uint64_t’ {aka ‘long unsigned int’} from NULL [-Wconversion-null] In file included from Core/SoarKernel/SoarKernel.cxx:35: Core/SoarKernel/src/explanation_based_chunking/ebc_identity.cpp: In function ‘uint64_t get_joined_identity_chunk_inst_id(Identity*)’: Core/SoarKernel/src/explanation_based_chunking/ebc_identity.cpp:94:94: warning: converting to non-pointer type ‘uint64_t’ {aka ‘long unsigned int’} from NULL [-Wconversion-null] /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:33: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ writing 16 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] /usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:33: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ writing 16 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] Core/CLI/src/cli_visualize.cpp:267:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] Core/CLI/src/cli_visualize.cpp:275:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] Core/CLI/src/cli_visualize.cpp:282:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] UnitTests/TestHarness/TestHelpers.cpp:50:14: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
- Loading branch information
1 parent
43c2ad0
commit a31e84d
Showing
7 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters