Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60464

Build issue with MSVC + /permissive- - Issue 2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.9.0 Beta 2
    • Multimedia
    • None
    • 121d88ee663ab3dffdcbc207135137c3fb0c8ef9

    Description

      In 'src/plugins/directshow/player/directshowmetadatacontrol.cpp', it has code similar to:

      void f()
      {
      	goto send_event;
      	void *p = nullptr;
      	if (p) {
      	}
      send_event: ;	
      }
      

      This is ill-formed because 'goto' skips the initialization of 'p'.

      One possible fix is to change:

          IWMHeaderInfo *info = com_cast<IWMHeaderInfo>(source, IID_IWMHeaderInfo);
      
          if (info) {
      

      to

          if (IWMHeaderInfo *info = com_cast<IWMHeaderInfo>(source, IID_IWMHeaderInfo);) {
      

      Attachments

        For Gerrit Dashboard: QTBUG-60464
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            xiangfan Xiang Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes