SHA256
1
0
forked from pool/dialog
dialog/dialog-gcc-warnings.patch
Stefan Seyfried b81656a83f Accepting request 308342 from home:pluskalm:branches:Base:System
- Add gpg signature
- Update to 1-2-20150513
  + add configure option --with-install-prefix, like ncurses.
  + add --with-screen and related configure options from ncurses-examples
    to allow building with ncurses6 test-packages.
  + update configure macros for improved coding style from lynx changes.
  + updated ro.po from
          http://translationproject.org/latest/dialog/
  + update config.guess, config.sub
  > patches by Florent Rougon:
  + fix two bugs in the "--file" option.
    + When the number of arguments read from the included file is 0, the
      code used to just skip over '--file' and its argument instead of
      removing them from the argument list, causing "Error:  Unknown
      option --file" later on.
    + In the alternative case (at least one argument read from the file),
      the previous code used to do '--j;' in order to "force rescan" of
      the inserted arguments.  However, control then flowed to outer
      blocks where a '++j;' counteracted this measure, causing "Error:
      Unknown option --msgbox" (for instance) later on.
  + modify escaping in argv.c to be more uniform, whether or not the
    backslash is found within a parameter.

OBS-URL: https://build.opensuse.org/request/show/308342
OBS-URL: https://build.opensuse.org/package/show/Base:System/dialog?expand=0&rev=32
2015-05-30 13:42:28 +00:00

44 lines
983 B
Diff

Index: dialog-1.2-20150513/dialog.h
===================================================================
--- dialog-1.2-20150513.orig/dialog.h
+++ dialog-1.2-20150513/dialog.h
@@ -43,6 +43,23 @@
#include <string.h>
#include <signal.h> /* fork() etc. */
#include <math.h> /* sqrt() */
+#include <sys/ioctl.h> /* struct winsize */
+
+#ifndef GCC_NORETURN
+#if defined(__GNUC__)
+#define GCC_NORETURN __attribute__((noreturn))
+#else
+#define GCC_NORETURN /*nothing*/
+#endif
+#endif
+
+#ifndef GCC_UNUSED
+#if defined(__GNUC__)
+#define GCC_UNUSED __attribute__((unused))
+#else
+#define GCC_UNUSED /*nothing*/
+#endif
+#endif
/* header conflict with Solaris xpg4 versus <sys/regset.h> */
#if defined(ERR) && (ERR == 13)
@@ -99,14 +116,6 @@
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
#endif
-#ifndef GCC_NORETURN
-#define GCC_NORETURN /*nothing*/
-#endif
-
-#ifndef GCC_UNUSED
-#define GCC_UNUSED /*nothing*/
-#endif
-
#ifndef HAVE_WGET_WCH
#undef USE_WIDE_CURSES
#endif