Skip to content

Commit 47e75c9

Browse files
committed
removed some compiler warnings from intel and a line length standards violation.
1 parent 1c99ecb commit 47e75c9

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

src/json_parameters.F90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ module json_parameters
4545
character(kind=CK,len=*),parameter :: end_array = CK_']' !! end of a JSON array
4646
character(kind=CK,len=*),parameter :: delimiter = CK_',' !! delimiter for JSON
4747
character(kind=CK,len=*),parameter :: colon_char = CK_':' !! colon character for JSON
48-
character(kind=CK,len=*),parameter :: start_array_alt = CK_'(' !! alternate start of JSON array for [[json_get_by_path_default]]
49-
character(kind=CK,len=*),parameter :: end_array_alt = CK_')' !! alternate end of JSON array for [[json_get_by_path_default]]
48+
character(kind=CK,len=*),parameter :: start_array_alt = CK_'(' !! alternate start of JSON array for
49+
!! [[json_get_by_path_default]]
50+
character(kind=CK,len=*),parameter :: end_array_alt = CK_')' !! alternate end of JSON array for
51+
!! [[json_get_by_path_default]]
5052
character(kind=CK,len=*),parameter :: root = CK_'$' !! root for [[json_get_by_path_default]]
5153
character(kind=CK,len=*),parameter :: this = CK_'@' !! 'this' for [[json_get_by_path_default]]
5254
character(kind=CK,len=*),parameter :: dot = CK_'.' !! path separator for [[json_get_by_path_default]]

src/json_value_module.F90

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -721,30 +721,31 @@ module json_value_module
721721
!! children for duplicate keys
722722

723723
!other private routines:
724-
procedure :: name_equal
725-
procedure :: name_strings_equal
726-
procedure :: json_value_print
727-
procedure :: string_to_int
728-
procedure :: string_to_dble
729-
procedure :: parse_value
730-
procedure :: parse_number
731-
procedure :: parse_string
732-
procedure :: parse_for_chars
733-
procedure :: parse_object
734-
procedure :: parse_array
735-
procedure :: annotate_invalid_json
736-
procedure :: pop_char
737-
procedure :: push_char
738-
procedure :: get_current_line_from_file_stream
739-
procedure :: get_current_line_from_file_sequential
740-
procedure :: convert
741-
procedure :: to_string
742-
procedure :: to_logical
743-
procedure :: to_integer
744-
procedure :: to_double
745-
procedure :: to_null
746-
procedure :: to_object
747-
procedure :: to_array
724+
procedure :: name_equal
725+
procedure :: name_strings_equal
726+
procedure :: json_value_print
727+
procedure :: string_to_int
728+
procedure :: string_to_dble
729+
procedure :: parse_value
730+
procedure :: parse_number
731+
procedure :: parse_string
732+
procedure :: parse_for_chars
733+
procedure :: parse_object
734+
procedure :: parse_array
735+
procedure :: annotate_invalid_json
736+
procedure :: pop_char
737+
procedure :: push_char
738+
procedure :: get_current_line_from_file_stream
739+
procedure,nopass :: get_current_line_from_file_sequential
740+
procedure :: convert
741+
procedure :: to_string
742+
procedure :: to_logical
743+
procedure :: to_integer
744+
procedure :: to_double
745+
procedure :: to_null
746+
procedure :: to_object
747+
procedure :: to_array
748+
procedure,nopass :: json_value_clone_func
748749

749750
end type json_core
750751
!*********************************************************
@@ -806,7 +807,7 @@ subroutine destroy_json_core(me)
806807
implicit none
807808

808809
class(json_core),intent(out) :: me
809-
810+
810811
end subroutine destroy_json_core
811812
!*****************************************************************************************
812813

@@ -1143,8 +1144,7 @@ subroutine json_clone(json,from,to)
11431144
!! (it must not already be associated)
11441145

11451146
!call the main function:
1146-
! [note: this is not part of json_core class]
1147-
call json_value_clone_func(from,to)
1147+
call json%json_value_clone_func(from,to)
11481148

11491149
end subroutine json_clone
11501150
!*****************************************************************************************
@@ -8937,11 +8937,10 @@ end subroutine annotate_invalid_json
89378937
! The file is assumed to be opened.
89388938
! This is the SEQUENTIAL version (see also [[get_current_line_from_file_stream]]).
89398939

8940-
subroutine get_current_line_from_file_sequential(json,iunit,line)
8940+
subroutine get_current_line_from_file_sequential(iunit,line)
89418941

89428942
implicit none
89438943

8944-
class(json_core),intent(inout) :: json
89458944
integer(IK),intent(in) :: iunit !! file unit number
89468945
character(kind=CK,len=:),allocatable,intent(out) :: line !! current line
89478946

0 commit comments

Comments
 (0)