Skip to content

unreachable code #4280

@torsten48

Description

@torsten48

latest release (11.1.1), MSC 19.42.34433 (VS2022 with latest updates) complains:

fmt\include\fmt\base.h(1538) : warning C4702: unreachable code
fmt\include\fmt\base.h(1542) : warning C4702: unreachable code
fmt\include\fmt\format.h(3425) : warning C4702: unreachable code

enable/disable FMT_NORETURN resp. [[noreturn]] has no effect.

if (end - fill_end <= 0) {
  report_error("invalid format specifier");
  return begin;
}

Do other compiler complain if return begin; is removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions