-
Notifications
You must be signed in to change notification settings - Fork 205
Closed
Labels
topic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...wontfixThis will not be worked onThis will not be worked on
Description
This is a proposal to implement a function that does nothing with its input arguments. I used a function like the one below to do nothing but acknowledge a compiler warning on an used dummy argument, which wasn't needed in the given context but couldn't be removed from the function signature. What do you think is there a need for such function in stdlib?
!> Do nothing but mark an unused dummy argument as such to acknowledge compile
!> time warning like:
!>
!> Warning: Unused dummy argument ‘dummy’ at (1) [-Wunused-dummy-argument]
!>
!> We deeply trust in the compiler to inline and optimize this piece of code away.
elemental subroutine unused_dummy_argument(dummy)
class(*), intent(in) :: dummy
associate(dummy => dummy); end associate
end subroutine unused_dummy_argumentMetadata
Metadata
Assignees
Labels
topic: utilitiescontainers, strings, files, OS/environment integration, unit testing, assertions, logging, ...containers, strings, files, OS/environment integration, unit testing, assertions, logging, ...wontfixThis will not be worked onThis will not be worked on