Skip to content

Unreachable code #9

@Windsurfer01

Description

@Windsurfer01

I noticed on compilation (Linux Mint 19.1, fpc 3.04, Lazarus 2.0 Fixes) the following unreachable warning: bare.system.pas(2033,5) Warning: unreachable code
This is the function:
function PathAdjustDelimiters(const Path: string): string;
begin
if DirectorySeparator = '/' then
Result := StrReplace(Path, '', DirectorySeparator)
else
Result := StrReplace(Path, '/', DirectorySeparator);
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions