| Summary: | loss of data warnings with gsl_parser.c | ||
|---|---|---|---|
| Product: | [Applications] LabPlot2 | Reporter: | uwestoehr <uwestoehr> |
| Component: | general | Assignee: | Stefan Gerlach <stefan.gerlach> |
| Status: | RESOLVED LATER | ||
| Severity: | normal | CC: | stefan.gerlach |
| Priority: | NOR | ||
| Version First Reported In: | latest | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | https://commits.kde.org/labplot/e2bbf36764c1ffadb6d2de492f3b5f6cf57acd0b | Version Fixed/Implemented In: | 2.5 |
| Sentry Crash Report: | |||
|
Description
uwestoehr
2017-11-19 18:11:30 UTC
ok. Tried to fix these warnings in the latest commit. Please check if they are still present. Now I get: 2>D:/LabPlot/src/gsl_parser.c(1086): warning C4242: '=': conversion from 'int' to 'yytype_int16', possible loss of data 2>backend/gsl/parser.y(277): warning C4242: '=': conversion from 'int' to 'char', possible loss of data 2>backend/gsl/parser.y(344): warning C4242: '=': conversion from 'int' to 'char', possible loss of data Git commit e2bbf36764c1ffadb6d2de492f3b5f6cf57acd0b by Stefan Gerlach. Committed on 19/11/2017 at 21:30. Pushed by sgerlach into branch 'master'. FIXED-IN: 2.5 M +2 -2 src/backend/gsl/parser.y https://commits.kde.org/labplot/e2bbf36764c1ffadb6d2de492f3b5f6cf57acd0b I get now: 2>C:\CraftRoot\include\msvc\stdlib.h(53): warning C4255: 'random': no function prototype given: converting '()' to '(void)' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(42): warning C4255: 'fnct': no function prototype given: converting '()' to '(void)' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(49): warning C4820: 'parser_var': '6' bytes padding added after data member 'name' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(53): warning C4255: 'func_t': no function prototype given: converting '()' to '(void)' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(62): warning C4820: 'symrec': '4' bytes padding added after data member 'type' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(66): warning C4255: 'init_table': no function prototype given: converting '()' to '(void)' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(67): warning C4255: 'delete_table': no function prototype given: converting '()' to '(void)' 2>C:\CraftRoot\labplot\src\backend\gsl\parser.h(68): warning C4255: 'parse_errors': no function prototype given: converting '()' to '(void)' Reopening because I get now this: 2>D:/LabPlot/src/gsl_parser.c(1086): warning C4242: '=': conversion from 'int' to 'yytype_int16', possible loss of data gsl_parser.c is auto-generated from parser.y. Can you show me at least the line 1086 of your gsl_parser.c? > Can you show me at least the line 1086 of your gsl_parser.c?
This is line 1086:
*yyssp = yystate;
Here is the context:
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
yysetstate:
*yyssp = yystate;
if (yyss + yystacksize - 1 <= yyssp)
Now I get more: 1>D:/LabPlot/src/gsl_parser.c(1087): warning C4242: '=': conversion from 'int' to 'yytype_int16', possible loss of data 1>d:\labplot\src\gsl_parser.c(1487): warning C4702: unreachable code this code is generated from bison and needs to be addressed upstream. |