Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silent compiler warnings #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeffhammond
Copy link

@jeffhammond jeffhammond commented Apr 8, 2020

while these functions may only be used when CUDA is active, they are
compiled unconditionally and thus should be correct when CUDA support is
disabled. alternatively, you could only compile them when CUDA is
active.

cd optimize; mpic++ -O3 -I../src -I../src/double -c ../src/Sarray.C
../src/Sarray.C:1006:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../src/Sarray.C:1079:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../src/Sarray.C:1095:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

Signed-off-by: Hammond, Jeff R jeff.r.hammond@intel.com

while these functions may only be used when CUDA is active, they are
compiled unconditionally and thus should be correct when CUDA support is
disabled.  alternatively, you could only compile them when CUDA is
active.

cd optimize; mpic++ -O3 -I../src -I../src/double -c ../src/Sarray.C
../src/Sarray.C:1006:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../src/Sarray.C:1079:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../src/Sarray.C:1095:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant