You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
412 B
15 lines
412 B
4 months ago
|
#!/bin/bash
|
||
|
# SPDX-License-Identifier: MIT
|
||
|
# Copyright 2020 Google LLC
|
||
|
#
|
||
|
# Use of this source code is governed by an MIT-style
|
||
|
# license that can be found in the LICENSE file or at
|
||
|
# https://opensource.org/licenses/MIT.
|
||
|
|
||
|
set -e -u -o pipefail
|
||
|
|
||
|
find . -name '*.c' | while read -r file; do
|
||
|
sparse "$file" -gcc-base-dir "$(gcc --print-file-name=)" \
|
||
|
-Iinclude -D_FILE_OFFSET_BITS=64 -Wbitwise -D_GNU_SOURCE
|
||
|
done
|