react-native-macos/ReactCommon/logger
Nick Gerleman 063c2b4668 Enable -Wpedantic for targets inside ReactCommon
Summary:
React Native is compiled downstream with MSVC, meaning the introduction of code depending on language extensions specific to gcc/clang may cause breakage.

We can enable `-Wpedantic` to flag any behavior not officially supported by the specified C++ standard. This will includes rules beyond what MSVC has trouble with, but seems to not have too many "noisy warnings".

This change enables -Wpedantic in BUCK targets within ReactCommon.

This makes the OSS C++ build for Android/iOS slightly more permissive than the internal build, A followup is to add the changes to OSS build logic as well, to avoid contributors seeing more errors upon internal submission. (checking with cortinico on how to do this for Android).

react-native-windows uses a higher warning level than `-Wall`, which is an additional cause of compilation failures, but is not addressed as part of this change.

Changelog:
[Internal][Changed] - Enable -Wpedantic for targets inside ReactCommon

Reviewed By: rshest

Differential Revision: D38457812

fbshipit-source-id: 014da1ac0b7ad8f78154e6e447ed58def6bd0d47
2022-08-11 04:37:35 -07:00
..
BUCK Enable -Wpedantic for targets inside ReactCommon 2022-08-11 04:37:35 -07:00
CMakeLists.txt Setup Globbing with CONFIGURE_DEPENDS inside CMake files. 2022-03-15 01:55:27 -07:00
React-logger.podspec bump RTC-Folly to 2021.07.22 (#33841) 2022-06-21 12:36:43 -07:00
react_native_log.cpp Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
react_native_log.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00