summaryrefslogtreecommitdiff
path: root/uts/debian/patches/uts-procfs-gcc-array-bounds.patch
blob: 0343809677ad2a4aa8cf40a871c72473776dcf25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: usr/src/uts/common/fs/proc/prvnops.c
    5249         if (off == 0) {             /* "." */
    5250             dirent->d_ino = pmkino(0, pslot, PR_PATHDIR);
    5251             dirent->d_name[0] = '.';
    5252             dirent->d_name[1] = '\0';
    5253             reclen = DIRENT64_RECLEN(1);
    5254         } else if (idx == 1) {          /* ".." */
    5255             dirent->d_ino = pmkino(0, pslot, PR_PIDDIR);

Index: b/usr/src/uts/intel/procfs/Makefile
===================================================================
--- a/usr/src/uts/intel/procfs/Makefile	2014-03-01 22:52:10.276423275 +0400
+++ b/usr/src/uts/intel/procfs/Makefile	2014-03-01 22:55:06.467363245 +0400
@@ -76,6 +76,7 @@
 CERRWARN	+= -_gcc=-Wno-parentheses
 CERRWARN	+= -_gcc=-Wno-switch
 CERRWARN	+= -_gcc=-Wno-uninitialized
+CERRWARN	+= -_gcc=-Wno-array-bounds
 #
 #	Default build targets.
 #