You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/12/24 23:59:10 UTC

[GitHub] [incubator-nuttx] yamt commented on a change in pull request #2597: Revert "board/sim: Remove the too strict warning"

yamt commented on a change in pull request #2597:
URL: https://github.com/apache/incubator-nuttx/pull/2597#discussion_r548765396



##########
File path: libs/libxx/libcxx.defs
##########
@@ -58,6 +58,18 @@ CXXFLAGS += ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY}
 libcxx/src/barrier.cpp_CXXFLAGS += -Wno-shadow
 libcxx/src/locale.cpp_CXXFLAGS += -Wno-shadow
 
+# Workaround the following warning with "c++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0"
+# For files including filesyste_common.h.
+#
+# libcxx/src/filesystem/filesystem_common.h:200:27: error: declaration 'struct timespec' does not declare anything [-Werror]
+#   200 | using TimeSpec = struct ::timespec;
+#       |                           ^~~~~~~~
+# libcxx/src/filesystem/filesystem_common.h:201:24: error: declaration 'struct stat' does not declare anything [-Werror]
+#   201 | using StatT = struct ::stat;
+#       |                        ^~~~
+libcxx/src/filesystem/directory_iterator.cpp_CXXFLAGS += -Wno-shadow -Wno-error

Review comment:
       maybe. i will check.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org