[llvm-bugs] [Bug 50542] New: #pragma in code is not suppressing warnings
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 31 11:11:48 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50542
Bug ID: 50542
Summary: #pragma in code is not suppressing warnings
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: davehitchman63 at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
I installed and built vsn 13 (I guess thats latest on trunk) after I couldnt
get my older vsn 8 to suppress warnings...
I have tried various ways documented on the internet to kill off the warnings
from
if (FD_ISSET(*sd, &readfds))
to totally ZERO effect. There are a few similar issues on similar lines
161:9: warning: do not use array subscript when the index is not an integer
constant expression; use gsl::at() instead
[cppcoreguidelines-pro-bounds-constant-array-index]
if (FD_ISSET(masterSocketFd, &readfds))
161:9: warning: use of a signed integer operand with a binary bitwise operator
[hicpp-signed-bitwise]
if (FD_ISSET(masterSocketFd, &readfds))
I have tried ignoring the specific errors I even tried
#pragma gcc diagnostic ignore "-Wall"
and
#pragma clang diagnostic ignore "-Wall"
No effect, these are instructions widely available on the internet and appear
to have zero effect.
I am using gcc on centos
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210531/9cb11f58/attachment.html>
More information about the llvm-bugs
mailing list