Questions tagged [warnings]

A warning is often issued on recognizing a potential high-risk situation, a probable misunderstanding, degraded service or imminent failure.

A warning-level error message shown by a compiler indicates a piece of code which the compiler recognizes as being potentially a problem, but which is syntactically correct such that the compiler is able to continue.

The seriousness of warning may vary from basically an error to something that could be considered just as bad programming style. Most of compilers provide keys to disable default warnings and may provide keys to enable warnings that are disabled by default (e.g. -Wall, -Wextra, -Werror).

5829 questions
3
votes
1 answer

Use of empty tag struct, compiler claims I'm missing initializer, except I'm not

Okay, I know this is similar to this Why is the compiler throwing this warning: "missing initializer"? Isn't the structure initialized?, but surely GCC isn't stupid enough to think I meant to initialize something which has NO…
Krupip
  • 4,404
  • 2
  • 32
  • 54
3
votes
1 answer

Active Screen Reader

Every time I open a new folder or restart my laptop I see an "Screen Reader Detected" warning in my terminal window. I have also tried turning "off" the accessibility Support in the terminal setting, but still no luck. Is there any way to solve…
3
votes
1 answer

React Native yellow warning on the Terminal

every time I run my react project, I have hundreds of yellow warning coming on my Terminal. impossible to see any console.log() I know, I am fixing them however it is talking time and I need to see a clean terminal when I am working on other…
user13283790
3
votes
4 answers

How do I satisfy void return warning in a restful java service

Java Code: @GET @Path("/stop/{id}") public void stop( @PathParam("id") String id, @Context HttpServletRequest request, @Context HttpServletResponse response) throws ServletException, IOException { …
stackoverflow
  • 18,348
  • 50
  • 129
  • 196
3
votes
2 answers

FutureWarning not displayed with warnings.simplefilter(action = "error", category=FutureWarning)

I am having trouble to find the line of code producing the FutureWarning message: elementwise comparison failed. There are other questions in SO that describe the python / numpy conflict that cause this warning. I am trying to find which lines are…
bici-sancta
  • 172
  • 1
  • 11
3
votes
1 answer

g++ incomplete warning behaviour with dangling references

We see 2 Examples which both have dangling references: Example A: int& getref() { int a; return a; } Example B: int& getref() { int a; int&b = a; return b; } We call them both with this same main…
Meph
  • 370
  • 1
  • 13
3
votes
3 answers

Increase verbosity of Perl warnings

Is there a way to increase the verbosity of warnings in Perl ? I use this to generate warnings. #!/usr/bin/perl -w I am especially interested in the following which I hit occasionally. Is there anyway Perl can print the name of uninitialized…
Jean
  • 21,665
  • 24
  • 69
  • 119
3
votes
1 answer

Grit warnings on ruby 1.9

I'm learning grit (version 2.4.1). Here is my basic code: #!/usr/bin/env ruby -wKU require "grit" repo = Grit::Repo.new("./myproject") p repo.commits Running this code gave me a lot of warnings. This GitHub diff, as pointed out by user @Dogbert,…
microspino
  • 7,693
  • 3
  • 48
  • 49
3
votes
1 answer

Supress rgdal warnings in R

i have some working code that, all of a sudden, shows a lot of warning messages (which it didn't do before). they do not hinder the execution of the code but are very annoying. i have around 2000 tif's i want to convert to rasters. to do so i load…
D.J
  • 1,180
  • 1
  • 8
  • 17
3
votes
0 answers

warnings filter precedence

import warnings def warn(): with warnings.catch_warnings(): warnings.simplefilter('always') warnings.warn('warning') with warnings.catch_warnings(): warnings.simplefilter('ignore') warn() warn.py:6:…
dshanahan
  • 676
  • 5
  • 12
3
votes
0 answers

I have error `Cannot update a component (`Ne`) while rendering a different component (`hn`)` with using @brainhubeu/react-carousel library

I use @brainhubeu/react-carousel library for implementing carousel component in my App. Here is example of code: export const Carousel = ({ options, open, onClose, value, onChange, }: Props) => { const [showSendWindow, setShowSendWindow]…
xCTAPx
  • 119
  • 2
  • 10
3
votes
2 answers

PHP does not issue a warning for undefined variables

Please correct me if I am wrong. From what I gather, PHP should issue a warning for this but doesn't. I am using PHP 5.2.17. How can I fix this? I am assuming this is set somewhere in php.ini?
Tyler Crompton
  • 12,284
  • 14
  • 65
  • 94
3
votes
1 answer

CodeSandbox — How to fix tsserver.js errors?

I am currently getting two error in CodeSandbox every time I refresh or start a new Sandbox. I tried many things to solve without success. Has anyone come across this and managed to fix it? Error VS Code's tsserver was deleted by another…
Diego Oriani
  • 1,647
  • 5
  • 22
  • 31
3
votes
2 answers

What are these warning for cross-site cookie in my console?

I'm using python 3.7.4, django 3.06, javascript and jquery on windows 7. I'm not sure when it happens but now my console (F12 on firefox) gives me these warning: Cookie “PGADMIN_KEY” will be soon treated as cross-site cookie against…
fabio
  • 1,210
  • 2
  • 26
  • 55
3
votes
1 answer

PyCharm Says readline Import Not Being Used

I had this code: while True: cmd = input('> ') if cmd == 'exit': break But I wanted to implement advanced text input features like command history so I imported the readline module. Importing the readline module (and not even using…
YulkyTulky
  • 886
  • 1
  • 6
  • 20
1 2 3
99
100