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

change compiler check and string indices for gcc #1529

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fms2_io/include/register_global_attribute.inc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subroutine register_global_attribute_0d(fileobj, &
err = nf90_put_att(fileobj%ncid, &
nf90_global, &
trim(attribute_name), &
trim(attribute_value(1:str_len)))
trim(attribute_value))
type is (integer(kind=i4_kind))
err = nf90_put_att(fileobj%ncid, &
nf90_global, &
Expand Down
2 changes: 1 addition & 1 deletion fms2_io/include/register_variable_attribute.inc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ subroutine register_variable_attribute_0d(fileobj, variable_name, attribute_name
type is (character(len=*))
if (.not. present(str_len)) call error("Need to include str length:"//trim(append_error_msg))
err = nf90_put_att(fileobj%ncid, varid, trim(attribute_name), &
trim(attribute_value(1:str_len)))
trim(attribute_value))
type is (integer(kind=i4_kind))
err = nf90_put_att(fileobj%ncid, varid, trim(attribute_name), &
attribute_value)
Expand Down
2 changes: 1 addition & 1 deletion m4/gx_compiler_bug_checks.m4
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ AC_COMPILE_IFELSE([[ subroutine test_sub(ctype)

select type(ctype)
type is (character(len=*))
ctype(:) = ""
ctype = ""
end select
end subroutine test_sub]],
[gx_cv_class_char_array_bug_check=no])
Expand Down
Loading