818 questions
-1 votes
0 answers
16 views
suppress onnxruntime warnings
I have a node.js project doing speech-to-text transcription with the xenova/transformers models. My project shows a lot of warnings - how do I suppress the warnings to log only errors? I've tried ...
0 votes
0 answers
24 views
Can I get CMake not to warn me about unused cmdline-defined variables? [duplicate]
I would like to avoid CMake's warnings about variables defined on the command line (e.g. -DFOO=BOOL:ON or any value of any other types). In the past, there was a a command-line option, --warn-unused-...
0 votes
1 answer
105 views
How can I suppress IntelliJ warnings which have no code?
Context Sometimes, you want to suppress a warning in one specific place, directly in the code, by using annotation @SuppressWarning (I give an example of such cases below). Problem I don't know how to ...
1 vote
2 answers
164 views
Can I suppress custom compiler errors with Roslyn?
I work with a platform that heavily uses reflection and code generation to initialize members of certain special types. It looks like this: public class MyGraph : PXGraph<MyGraph> { public ...
1 vote
2 answers
115 views
Getting warnings for using void * while trying to recode printf
I'm trying to set up an array of functions that takes in functions that need different variables (for example, my_putchar needs a char while my_put_nbr needs an int), so I just decided to define it ...
2 votes
1 answer
815 views
Why am I getting "no matching literal operator" when trying to use sv literals?
I want to use the literal operators introduced in C++17 to create string views. But if I write: #include <string_view> // ... auto name = "John Smith"sv; in my code, compilation ...
0 votes
0 answers
165 views
Is there a way to suppress warnings but only for a given directory in Sphinx?
I am generating API documentation using autoapi.extension in Sphinx. It is a large repo, and not all of the doc strings are well formatted and this generates a lot of sphinx docutils warnings. However ...
3 votes
1 answer
2k views
Proper way to append paths to PATH-like variables in Dockerfile
What is the correct way to append a path to a variable in a Dockerfile without triggering any warnings, even if the variable is undefined? Suppose I want to append a path to a PATH-like environment ...
1 vote
1 answer
63 views
Casted override and overloading, will the java compiler create the necessary bytecode?
Assume the next scenario: interface FloatObject<V> extends Function<Float, V> { V apply(Float floatObject); default FloatObject<Float, V> x_5() { return aFloatObject -&...
1 vote
1 answer
267 views
Can I suppress a specific linker warning about a specific location?
My project code links against some libraries whose source I don't have. During linking I get: /usr/x86_64-suse-linux/bin/ld:libfoo.a(foo.o): in function `flush': source/readcfg.c:1234:(.text+0xabc): ...
1 vote
1 answer
159 views
How to suppress warning W7041 in BCC64?
In a Borland C++Builder non-modern 64bit codebase (bcc64) that I'm working on, a number of class definitions emit the following warning: warning W7041: Interface 'XXX' does not derive from IUnknown. (...
0 votes
0 answers
36 views
Is there a way to suppress all warnings in an Matlab MLS script?
I have an MLX script in which I am analyzing code written by someone else. I am using this so that I have access to LaTeX snippets as well as the MatLab environment. But, I am also including ...
0 votes
1 answer
157 views
How to suppress warning for all derived types?
I have an ITemplate interface in my project. All interfaces derived from it have names that do not start with I. This causes the InconsistentNaming warning to appear. I want to suppress this warning ...
1 vote
1 answer
446 views
Suppressing warnings for all files in a specific folder in Visual Studio
How to suppress a single warning e.g. CS1591 for all files in a single folder? e.g I only wont suppress all warnings in folder Areas not in the full project. I have tried: <ItemGroup> <...
2 votes
2 answers
4k views
PyTest fixture : How to resolve FastAPI 'app' shortcut deprecated warning?
I am trying to solve one for all, this Warning while executing pytests: /usr/local/lib/python3.11/site-packages/httpx/_client.py:680: DeprecationWarning: The 'app' shortcut is now deprecated. Use ...