-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DJGPP warnings #120
Comments
Note: --- syserr.c 2024-08-11 12:34:46.459171889 +1000
+++ SYSERR.C 2024-08-11 12:37:44.000000000 +1000
@@ -1,6 +1,6 @@
/*
- * THIS FILE WAS GENERATED BY %WATT_ROOT%\e:/home/mario/git/projects/watt-32/util/dj_err.exe
- * at Sun Aug 11 12:06:01 2024.
+ * THIS FILE WAS GENERATED BY %WATT_ROOT%\c:/watt-32/util/dj_err.exe
+ * at Sun Aug 11 12:37:45 2024.
* DO NOT EDIT.
*
* The Watt-32 'sys_errlist[]' that replaces vendor's 'sys_errlist[]'
@@ -51,7 +51,7 @@
char __syserr038[] = "No more files (ENMFILE)";
char __syserr039[] = "Too many levels of symbolic links (ELOOP)";
char __syserr040[] = "Value too large (EOVERFLOW)";
-char __syserr041[] = "Invalid or incomplete multibyte or wide character (EILSEQ)";
+char __syserr041[] = "Multibyte/wide character encoding error (EILSEQ)";
char __syserr042[] = "Operation would block (EWOULDBLOCK)";
char __syserr043[] = "Operation now in progress (EINPROGRESS)";
char __syserr044[] = "Operation already in progress (EALREADY)"; --- djgpp.err 2024-08-11 12:35:23.528344479 +1000
+++ DJGPP.ERR 2024-08-11 12:37:44.000000000 +1000
@@ -2,18 +2,18 @@
#define __SYS_WERRNO_ERR
/*
- * THIS FILE WAS GENERATED BY %WATT_ROOT%\e:/home/mario/git/projects/watt-32/util/dj_err.exe
- * at Sun Aug 11 12:06:01 2024.
+ * THIS FILE WAS GENERATED BY %WATT_ROOT%\c:/watt-32/util/dj_err.exe
+ * at Sun Aug 11 12:37:45 2024.
* DO NOT EDIT.
*
- * Watt-32 errnos are after vendor's errnos (1 - 41)
+ * Watt-32 errnos are after vendor's errnos (1 - 38)
*/
#ifndef __DJGPP__
#error This file is only for use by "__DJGPP__"
#endif
-#define ERRNO_VENDOR_VERSION "2.05"
+#define ERRNO_VENDOR_VERSION "2.03"
#define EDOM 1
#define ERANGE 2 |
Looks like the pragma warning comes from that very code trying to cover up another warning Lines 2206 to 2230 in 7482848
Not exactly sure what tcp_opt_md5_sign() is writing into the opt pointer but it should be possible to write as an array to remove stringop-overflow warning to begin with
|
Ok, but gcc 4.7.1 is very old (June 2012 according to this). Yet, it warns on On the gcc 12.2.0 (August 2022) warning; I've seen these array-bounds warning elsewhere. But fail to see their importance. |
The compiler claims to have My temporary workaround for this build problem was replacing each instance of Lines 275 to 282 in 7482848
"%.4s%.4s%.4s" <= 13Lines 324 to 328 in 7482848
"Core base: %lu, Core max: %lu, Core bus: %lu (MHz)" <= 102Lines 343 to 346 in 7482848
"EDX: 0x%08lX, FID: %lu, EffFreqRO: %lu, ProcFeedback: %lu" <= 112Lines 363 to 370 in 7482848
"%.4s%.12s" "%.4s%.12s" "%.4s%.12s" <= 49Lines 2245 to 2248 in 7482848
", size %u" <= 28
|
djgpp < 2.04 simply doesn't have [v]snprintf(), and naturally doesn't have prototypes of them. That's simply what it's about. |
I'm okay with assuming that. And replace with |
I'm not sure whats trying to be achieved with these two variables. Lines 495 to 498 in dca78e7
Lines 573 to 580 in dca78e7
|
Since #119 made it possible to build DJGPP on DOS naively again. GCC reports several warnings.
Native compiler
Reports as gcc version 4.7.1
Unused functionImplicit Function DeclarationThis warning manifests itself as a build error later whenlibwatt.a
included in an applicationPragmas
Type LimitsCross Compiler
Reports as gcc version 12.2.0
Unused FunctionArray Bounds
The text was updated successfully, but these errors were encountered: