Questions tagged [suppress-warnings]
Compilers and interpreters commonly warn about miscellaneous conditions. Suppressing some or all of those warnings may help to reduce the 'noise' a compiler emits.
798
questions
-2
votes
0
answers
84
views
Warning in printf() about different types cannot be silenced, even after using -Wno-format-signedness
Im trying to silence the warning about a printf that has different signed/unsigned types. The code is quite easy:
int value = 10;
printf("here a test %ld \n", value);
https://...
0
votes
1
answer
59
views
How to suppress warning "Be aware, overflowing tokens are not returned"
I am using NewsSentiment, a targeted sentiment analysis library for Python. It is (too) occasionally throwing the warning:
Be aware, overflowing tokens are not returned for the setting you have
...
1
vote
1
answer
37
views
xcodebuild swift package: supress all warnings from dependent Swift packages but not the main target
How to suppress all of the warnings from third-party dependencies but not from the main target? A lot of third-party dependencies installed via SPM pollute the build log with warnings, those are not ...
0
votes
1
answer
32
views
JAVA MAVEN BUILD fails. Unable to SUPRESS WARNINGS
I’m using maven version 3.6.3
mvn package command fails with the below error message:
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< mypdf:mypdf >-----...
0
votes
0
answers
27
views
Lib.Harmony resharper Name '__instance' does not match rule 'Parameters'. Suggested name is 'instance'
Any ideas on how I can not just suppress/ignore but instead say to resharper that this is expected and okay for me? I'm using JetBrains Rider 2023
Adding the attribute of inconsistent naming [...
0
votes
2
answers
142
views
Suppress warning in Rider for a specific project
I am working on a project that only contains Models and I have a lot of properties like this one:
public string FromReversed
{
get
{
return From.ReverseString();
}
#if ...
0
votes
0
answers
44
views
Flutter building Windows app warning when objectbox added in pubspec.yaml
When I start debug or run Flutter app (VS Code) have warning :
CMake Warning (dev) at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/...
0
votes
1
answer
18
views
How to ignore compiler warnings in Eclipse for generated code when using Gradle's Eclipse plugin?
I have a Java library that includes a large amount of generated code in the src/gen/java directory. The code generator isn't very mature, so the generated code triggers tons of Eclipse warnings. ...
0
votes
1
answer
68
views
Gnuplot: How to disable "WARNING: Plotting with an 'unknown' terminal."?
In a Gnuplot file, I am using the following "subroutine" file to compute dimensions of some table:
# Sets:
# size_x ,min_x, max_x,
# size_y, min_y, max_y.
# Dummy plot to get statistical ...
1
vote
1
answer
43
views
Annotate that a class method used in the constructor instantiates some class members
I have a class with constructors that share part of the initialization procedure.
The IDE does not detect that initSomeExampleMembers() instantiates Map, and it therefore notifies me with "after ...
2
votes
2
answers
65
views
Create a list of all messages, warnings, and errors returned by a function
I have a function in R that calls other functions. Occasionally, those functions can return the same message. I only want the message to print once. What is the best way to handle that?
In the example ...
0
votes
1
answer
44
views
How can I mute warnings and errors in SVN?
When I run command like svn ls *.py, it throws warnings since some of *.py files in the working dir are not under track.
I wonder if I can somehow mute warnings and errors from an svn command? I know ...
0
votes
0
answers
21
views
Suppress "value stored to during its initialization is never read"
I'm using Xcode as my IDE on macOS for some simple pure-C code. The code uses stdlib's rand. A former thread here suggested calling rand twice near the start of main to better randomize it. So I added ...
0
votes
0
answers
33
views
Suppressor Class only working in notebook block and not in command line
This is the class I am using as my supressor
import sys
import traceback
import warnings
from rdkit import RDLogger
from rdkit import Chem
class Suppressor:
def __init__(self, log_file):
...
0
votes
1
answer
39
views
What is the Warning ID of the "No XML encryptor configured." warning
I am trying to suppress the warning:
No XML encryptor configured. Key {xxx} may be persisted to storage in unencrypted form. and am having the hardest time finding the warning ID for it.
The warning ...
0
votes
0
answers
59
views
How can I eliminate non fatal PHP warnings from my error log file
This is in regard to a shared web hosting plan, so I only have limited control over the server. I do occasionally write PHP modules to assist various tasks, and so I have edited my PHP.INI file to ...
0
votes
0
answers
43
views
Is there a way to suppress deprecation warnings about a specific final class in Java?
My project depends on a library that deprecated a final class. It's hard to migrate to a substitute class and we don't have time to do it now. At the same time, I don't like it when there are a lot of ...
0
votes
1
answer
185
views
Disable Kafka Warnings for Spark Streaming Application
I use Spark Structured Streaming (pyspark) to read data from Kafka topic. It works well but when I open executors stderr my whole log page is WARN from Kafka saying that
kafkadataconsumer is not ...
0
votes
0
answers
35
views
How to prevent php script from returning a return code on warnings?
php 7.4.14 on Windows
I'm modifying a script that is launched from a batch file. After the script I test for errorlevel 1 and jump over code that deletes files, since I want to process those files ...
0
votes
1
answer
115
views
swig ignoring unknown base class
I am developing a c++ -> python wrapper using swig. I am trying to suppress Warning 401: Nothing known about base class 'xxx'. Ignored.
base.h:
#ifndef _BASE_H_INCLUDED_
#define _BASE_H_INCLUDED_
...
2
votes
1
answer
648
views
Deserializing with generics using Micronaut Serialization without using @SuppressWarnings("unchecked")
I try to deserialize a generic Object W<T> from JSON with Micronaut Serialization , it works, but the compiler produces an "unchecked assignment" warning.
I would like to achieve the ...
0
votes
0
answers
221
views
How to use suppress warnings without knowing the specific error type?
I recently ran into a compilation error that was red flagging files as well.
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.spring.framework.boot) apply false
}
I know ...
-1
votes
1
answer
73
views
Supress warning on recursive integer_sequence expansion?
I originally asked a question on how place holder generators work using integer_sequence expansion: How does this placeholder generator work?
Using this I wrote the following header-only library:
/// ...
1
vote
3
answers
1k
views
node internal error MODULE_NOT_FOUND by global install but not by local install
My goal is to get a cli I can execute every where.
Seem the better way is global install.
But when I try, it raise an error like if a required module was missing.
Can't resolve this even after an npm ...
3
votes
1
answer
256
views
Suppress Python warnings in multiple threads
While using OneHotEncoder and GridSearchCV, I received a series of warnings, which stated the following:
/anaconda3/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py:182: UserWarning: ...
0
votes
1
answer
140
views
Trying to suppress ggplot2 warning about introducing infinite values in log-transformed axis
I'm trying to suppress a ggplot2 warning about infinite values being introduced with no luck. Here are some dummy data:
DF <- data.frame(X = 1:10, Y = -1:8)
ggplot(DF, aes(x = X, y = Y)) +
...
0
votes
1
answer
159
views
Suppress "warning: ISO C++11 does not support" when using strftime()
So I am currently using strftime() to format a tm object in a given format. I'm trying to use
strftime(buffer, sizeof(buffer), "%a %d %b %04Y", &timeinfo);
but this is not available in ...
0
votes
1
answer
572
views
How to supress warnings from SonarLint in Eclipse without causing "Unsupported @SuppressWarnings" issue
I am using SonarLint (SonarLint for Eclipse 7.7.0.60863) with Eclipse (Version: 2022-12 (4.26.0)) and it shows warnings like "Server certificates should be verified during SSL/TLS connections (...
0
votes
0
answers
28
views
Custom Annotation with Lint Suppress and Reason
I have some false positives in Lint because it does not recognzie a method is used in databinding and marks it as "can be private". So I have to add @Suppress("...
0
votes
0
answers
87
views
Xcode - Silence Incomplete Umbrella Header Warnings only in Target Dependencies
In Xcode I have a Swift framework A that depends on target B and target B depends on target C. A->B->C
target C is a third party vendor written in Objective-C. In its build setting the ...
0
votes
0
answers
56
views
doctest CHECK_TROWS_AS unused argument
I'd like to doctest some conversion expression with C++ doctest.
I'm using a code similar to the following
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
TEST_CASE("...
0
votes
0
answers
54
views
suppressMessages() with read_excel() still prints empty line
I'm reading in data with read_excel() from the readxl package to avoid possible java issues when sharing my script with coworkers that have crept up using xlsx. I've been trying to suppress the output ...
0
votes
1
answer
432
views
How to ignore TqdmExperimentalWarning?
Everytime a tqdm_gui object is created, a warning is printed. I tried to suppress it with contextlib but to no avail.
import contextlib as ctx
from tqdm import TqdmExperimentalWarning
from tqdm.gui ...
4
votes
1
answer
865
views
Inline suppressing of warnings with Github CodeQL
CodeQL reports some true and some false positive for a specific rule.
Is there a way to mark a Python codeline so that the check is ignored by CodeQL?
Similar, for example to # noqa for Python flake ...
2
votes
1
answer
554
views
SuppressMessage compiler warning CS1591 for generated code (xsd.exe)
I'm using the tool xsd.exe in several projects to generate classes for my data model.
When turning on documentation file generation in my csproj the compiler starts to show lots of warnings of type: ...
0
votes
1
answer
512
views
jdbcTemplate nullable warning on not null field
When calling select query on not null column so we can expect not null (int) value, Code:
public int getNum() {
int num = 0;
try {
num = jdbcTemplate.queryForObject("select num ...
0
votes
1
answer
314
views
Is there a way to disable IDE0005_gen warnings?
The following auto-generated .g.cs file has some unused usings and I'd like to silence warnings:
#pragma warning disable IDE0005
#pragma warning disable IDE0005_gen
using System;
However, neither ...
0
votes
1
answer
194
views
python simplify warning message
I'm getting this (three) runtime warnings, every time I run my code.
/usr/local/lib/python3.8/dist-packages/scipy/interpolate/_fitpack_impl.py:977: RuntimeWarning: No more knots can be added because ...
2
votes
2
answers
266
views
Suppressing output after SSH to another server
When I SSH to another server thare are some blurbs of text that always outputs when you log in. (wheather its SSH or just logging in to its own session)
"Authentification banner" is what it ...
0
votes
0
answers
55
views
Suppress SSL Certificate through .Net Framework
if https shows any warning related to SSL certificate how to suppress this kind of warnings through .Net API call or any other ways to restrict through coding in .Net framework.
Referred these ...
2
votes
1
answer
33
views
Suppressing FXCOP error for vb.net Method
I want to suppress FXCOP error(CA1811) for specific vb.net function.
Like <SuppressMessage()> in c#, do we alternative of this in VB.net?
I am new to vb.net.
3
votes
0
answers
802
views
How to suppress a warning from Checkmarx in JetBrains IDE?
After adding Jackson as a dependency in my project, I get the warning:
Provides transitive vulnerable dependency maven:com.fasterxml.jackson.core:jackson-databind:2.13.4 CVE-2022-42003 7.5 ...
1
vote
1
answer
944
views
Cannot supress PySpark warnings
I am having some issues with trying to suppress pyspark warnings, specifically pandas on spark API. What I currently have:
import warnings
warnings.simplefilter(action='ignore', category=Warning)
...
3
votes
1
answer
1k
views
Suppress RasterIO Warning. Warning 1: TIFFReadDirectory
I've been having problems with the error message
Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels ...
0
votes
1
answer
260
views
How to tell IntelliJ IDEA that a method is checking for null value (ConstantConditions warning)
We have a common method that we shared across our codebase to check if a response is empty, including null body. This is the signature of the method
public static <T> boolean checkResponseEmpty(...
3
votes
3
answers
1k
views
Working around or suppressing try-with-resources varible not used warning
In Java 17 I have a serializer that generates a tree structure. Before generating child entities, I increase the indention level; afterwards I decrease the indention level. Normally that should be ...
0
votes
0
answers
70
views
Can clang-tidy warnings from selected code branches be suppressed?
I use LLVM version 12.0.0.
Let's assume that there is library code that contains some weird code for testing purposes. This code will never be accessed during normal library use, but is only there for ...
1
vote
1
answer
52
views
Valgrind relative paths in suppression file
Valgrind can generate suppression file, but it contains absolute paths to libraries by default. But I want to share this suppression file between multiple computers, my project may be stored on ...
-2
votes
2
answers
441
views
How to suppresswarnings for switch has only 1 case
I init a switch has only 1 case atm and expect adding more later.
switch(text) {
case app1:
return value
default:
return default value
}
How to suppress it? I've tried so far @...
1
vote
1
answer
384
views
Python How hide show error Message and Warnings when execute .exe
IMAGE OF ERROR
When execute .exe show this IMAGE ERROR above. But the program is working properly, i need hide this show message and hide warnings i compiled used this code pyinstaller --noconsole --...