Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
2c238010
Commit
2c238010
authored
8 years ago
by
Cédric Roux
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/enhancement-212-warning-counts' into develop_integration_w08
parents
abfeb4ef
e98c3e81
No related branches found
No related tags found
1 merge request
!124
Develop integration w08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/tools/build_helper
+15
-0
15 additions, 0 deletions
cmake_targets/tools/build_helper
with
15 additions
and
0 deletions
cmake_targets/tools/build_helper
+
15
−
0
View file @
2c238010
...
@@ -136,6 +136,20 @@ clean_all_files() {
...
@@ -136,6 +136,20 @@ clean_all_files() {
# Compilers
# Compilers
###################################
###################################
#check_warnings:
# print error message if the compilation had warnings
#argument:
# $1: log file
check_warnings() {
#we look for 'warning:' in the compilation log file
#this is how gcc starts a warning
#this is not perfect, we may get false positive
warning_count=`grep "warning:" "$1"|wc -l`
if [ $warning_count -gt 0 ]; then
echo_error "WARNING: $warning_count warnings. See $1"
fi
}
compilations() {
compilations() {
cd $OPENAIR_DIR/cmake_targets/$1/build
cd $OPENAIR_DIR/cmake_targets/$1/build
set +e
set +e
...
@@ -153,6 +167,7 @@ compilations() {
...
@@ -153,6 +167,7 @@ compilations() {
if [ -s $3 ] ; then
if [ -s $3 ] ; then
cp $3 $4
cp $3 $4
echo_success "$2 compiled"
echo_success "$2 compiled"
check_warnings "$dlog/$2.$REL.txt"
else
else
echo_error "$2 compilation failed"
echo_error "$2 compilation failed"
exit 1
exit 1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment