Revert "Add -Wno-error=declaration-after-statement to extra_compile_args"

This reverts commit 84922cb6ccbc32825a9da0d1fb40a93d951aac11.