Wireshark mailing list archives

Re: /Qspectre


From: Guy Harris <guy () alum mit edu>
Date: Mon, 9 Apr 2018 12:12:10 -0700

On Apr 9, 2018, at 11:58 AM, Maynard, Chris <Christopher.Maynard () IGT com> wrote:

Maybe there’s a way to detect whether /Qspectre is supported by the compiler or not and omit it if it isn’t in order 
to avoid all of these warnings?

        check_c_compiler_flag(-Qspectre C__Qspectre_VALID)
        if(C__Qspectre_VALID)
                set(CMAKE_C_FLAGS "-Qspectre ${CMAKE_C_FLAGS}")
        endif(C__Qspectre_VALID)

and similar for C++.  (I'm not sure whether you can use / or whether CMake expects - to be used even with Windows 
programs, translating it to / as necessary.)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: