Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-1006

[MSVC] use __declspec(noreturn) where __attribute__((noreturn)) is used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2
    • Build and Installation
    • None
    • MSVC 6.0 and better

    • Inefficiency

    Description

      As noted in this comment on STDCXX-890, we can and should use Visual C++ __declspec(noreturn) to declare functions that do not return to the caller to avoid warnings and to help the optimizer generate better code.

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h