Suppress warnings from library code?

@ivankravets I tried to use

src_build_flags =
    -Wall -Wpedantic -Werror

But still, getting warnings from libs, any idea why?

Libs defined via

lib_deps = 
    https://github.com/MrKalach/ESPAsyncWebServer.git
    https://github.com/bblanchon/ArduinoJson.git

full platformio.ini:

[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino

src_build_flags =
    -Wall -Wpedantic -Werror
    -std=c++11

extra_scripts =
    pre:data/gen_scripts/main.py

lib_deps = 
    https://github.com/MrKalach/ESPAsyncWebServer.git
    https://github.com/bblanchon/ArduinoJson.git

PlatformIO, version 4.3.1