crashtesting: "unknown cell text: element" assert for text:bookmark #2
[LibreOffice.git] / external / firebird / firebird-cygwin-msvc-warnings.patch
blob942522439bac51b86f41ea16c60daf25066ed210
1 diff -ur builds/posix/make.defaults builds/posix/make.defaults
2 --- builds/posix/make.defaults 2016-07-07 13:56:13.036235166 +0200
3 +++ builds/posix/make.defaults 2016-07-07 14:29:52.368289242 +0200
4 @@ -102,7 +102,7 @@
5 #____________________________________________________________________________
7 # Firebird needs no RTTI
8 -RTTI_FLAG:= -fno-rtti
9 +RTTI_FLAG:=
11 # If this is defined then we use special rules useful for developers only
12 IsDeveloper = @DEVEL_FLG@
13 @@ -175,6 +175,7 @@
14 # Default extensions
16 ARCH_EXT= .lib
17 +OBJ_EXT= obj
18 EXEC_EXT= @EXEEXT@
19 SHRLIB_EXT=@SHRLIB_EXT@
20 LIB_PREFIX=
21 --- builds/posix/Makefile.in 2016-07-07 15:56:06.459221300 +0200
22 +++ builds/posix/Makefile.in 2016-07-13 12:44:57.134217200 +0200
23 @@ -665,7 +666,7 @@
25 include $(ROOT)/gen/make.shared.targets
27 -Dependencies = $(AllObjects:.o=.d)
28 +Dependencies = $(AllObjects:.$(OBJ_EXT)=.d)
29 -include $(Dependencies)
32 @@ -729,14 +730,14 @@
33 -$(MAKE) -C $(ROOT)/extern/libtommath clean
35 clean_objects:
36 - $(RM) `find $(TMP_ROOT)/ -type f -name '*.o' -print`
37 + $(RM) `find $(TMP_ROOT)/ -type f -name '*.$(OBJ_EXT)' -print`
38 $(RM) `find $(TMP_ROOT)/ -type f -name '*.a' -print`
39 $(RM) `find $(TMP_ROOT)/ -type f -name '*.cpp' -print`
40 $(RM) `find $(TMP_ROOT)/ -type f -name '*.pas' -print`
42 clean_extern_objects:
43 $(RM) `find $(ROOT)/extern/ -type f -name '*.lo' -print`
44 - $(RM) `find $(ROOT)/extern/ -type f -name '*.o' -print`
45 + $(RM) `find $(ROOT)/extern/ -type f -name '*.$(OBJ_EXT)' -print`
47 # Clear out dependancies files created by the gcc compiler
48 # since when .o and other files are deleted the dependant
49 diff -ur builds/posix/make.rules builds/posix/make.rules
50 --- builds/posix/make.rules 2016-07-07 13:56:13.036235166 +0200
51 +++ builds/posix/make.rules 2016-07-07 14:31:16.116291485 +0200
52 @@ -92,21 +92,21 @@
53 $(LIBO_TUNNEL_LIBRARY_PATH) $(GPRE_CURRENT) $(GPRE_FLAGS) $(firstword $<) $@
56 -.SUFFIXES: .lo .o .cpp .c
57 +.SUFFIXES: .lo .$(OBJ_EXT) .cpp .c
59 -%.o: %.c
60 +%.$(OBJ_EXT): %.c
61 $(CC) $(WCFLAGS) -c $(firstword $<) -o $@
63 -$(OBJ)/%.o: $(SRC_ROOT)/%.c
64 +$(OBJ)/%.$(OBJ_EXT): $(SRC_ROOT)/%.c
65 $(CC) $(WCFLAGS) -c $(firstword $<) -o $@
67 -$(OBJ)/%.o: $(OBJ)/%.cpp
68 +$(OBJ)/%.$(OBJ_EXT): $(OBJ)/%.cpp
69 $(CXX) $(WCXXFLAGS) -c $(firstword $<) -o $@
71 -$(OBJ)/%.o: $(SRC_ROOT)/%.cpp
72 +$(OBJ)/%.$(OBJ_EXT): $(SRC_ROOT)/%.cpp
73 $(CXX) $(WCXXFLAGS) -c $(firstword $<) -o $@
75 -$(OBJ)/%.o: $(ROOT)/%.cpp
76 +$(OBJ)/%.$(OBJ_EXT): $(ROOT)/%.cpp
77 $(CC) $(WCFLAGS) -c $(firstword $<) -o $@
79 .SUFFIXES: .epp .e
80 --- builds/posix/make.shared.variables.orig 2020-11-12 19:36:29.773409900 +0100
81 +++ builds/posix/make.shared.variables 2020-11-12 19:37:14.976503300 +0100
82 @@ -1,5 +1,5 @@
83 # Helper functions
84 -doObjects= $(patsubst %.y,%.o,$(patsubst %.epp,%.o,$(patsubst %.c,%.o,$(1:.cpp=.o))))
85 +doObjects= $(patsubst %.y,%.$(OBJ_EXT),$(patsubst %.epp,%.$(OBJ_EXT),$(patsubst %.c,%.$(OBJ_EXT),$(1:.cpp=.$(OBJ_EXT)))))
86 makeObjects= $(addprefix $(OBJ)/$(patsubst ../%,%,$(1))/,$(call doObjects,$2))
87 dirFiles= $(notdir $(wildcard ../src/$(1)/*.cpp)) $(notdir $(wildcard ../src/$(1)/*.c)) \
88 $(notdir $(wildcard ../src/$(1)/*.epp)) $(notdir $(wildcard ../src/$(1)/*.y))
89 --- src/include/gen/autoconfig.h.in.orig 2020-11-12 20:52:49.835722200 +0100
90 +++ src/include/gen/autoconfig.h.in 2020-11-12 20:53:18.148311100 +0100
91 @@ -773,7 +773,9 @@
92 #pragma warning(disable:4996) // 'identificator' was declared deprecated
93 #endif
95 +#ifndef WIN32_LEAN_AND_MEAN
96 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
97 +#endif
99 //#ifdef _MSC_VER // don't know if this is useful for MinGW
100 #define NOATOM
101 --- builds/posix/prefix.mingw.orig 2020-11-12 21:37:39.574461300 +0100
102 +++ builds/posix/prefix.mingw 2020-11-12 21:37:55.448422500 +0100
103 @@ -20,8 +20,8 @@
106 # -Wno-unused-variable is used due to unused gpre generated variables
107 -PROD_FLAGS=-O2 -DMINGW -Dlint -DWIN32_LEAN_AND_MEAN
108 -DEV_FLAGS=-ggdb -DMINGW -Dlint -DWIN32_LEAN_AND_MEAN
109 +PROD_FLAGS=-O2 -DMINGW -Dlint -DWIN32_LEAN_AND_MEAN -wd4291 -wd4477
110 +DEV_FLAGS=-ggdb -DMINGW -Dlint -DWIN32_LEAN_AND_MEAN -wd4291 -wd4477
112 PLATFORM_PATH=os/win32
114 --- extern/btyacc/Makefile.orig 2020-11-12 21:39:13.833012400 +0100
115 +++ extern/btyacc/Makefile 2020-11-12 21:39:54.861473300 +0100
116 @@ -25,8 +25,8 @@
118 MAKEFILE = Makefile
120 -OBJS = closure.o error.o lalr.o lr0.o main.o mkpar.o output.o \
121 - mstring.o reader.o readskel.o skeleton.o symtab.o verbose.o warshall.o
122 +OBJS = closure.obj error.obj lalr.obj lr0.obj main.obj mkpar.obj output.obj \
123 + mstring.obj reader.obj readskel.obj skeleton.obj symtab.obj verbose.obj warshall.obj
125 PRINT = pr -f -l88
127 @@ -44,7 +44,7 @@
128 $(PROGRAM): $(OBJS) $(LIBS)
129 $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
131 -%.o: %.c
132 +%.obj: %.c
133 $(CC) $(CCFLAGS) -c $< -o $@
135 clean:; rm -f $(OBJS)
136 @@ -93,16 +93,16 @@
137 etags *.c *.h
140 -closure.o: defs.h
141 -error.o: defs.h
142 -lalr.o: defs.h
143 -lr0.o: defs.h
144 -main.o: defs.h
145 -mkpar.o: defs.h
146 -mstring.o: mstring.h
147 -output.o: defs.h
148 -reader.o: defs.h mstring.h
149 -skeleton.o: defs.h
150 -symtab.o: defs.h
151 -verbose.o: defs.h
152 -warshall.o: defs.h
153 +closure.obj: defs.h
154 +error.obj: defs.h
155 +lalr.obj: defs.h
156 +lr0.obj: defs.h
157 +main.obj: defs.h
158 +mkpar.obj: defs.h
159 +mstring.obj: mstring.h
160 +output.obj: defs.h
161 +reader.obj: defs.h mstring.h
162 +skeleton.obj: defs.h
163 +symtab.obj: defs.h
164 +verbose.obj: defs.h
165 +warshall.obj: defs.h
166 --- extern/cloop/Makefile.orig 2020-11-13 10:59:53.282923700 +0100
167 +++ extern/cloop/Makefile 2020-11-13 11:00:24.267079900 +0100
168 @@ -24,8 +24,8 @@
169 SRCS_C := $(foreach sdir,$(SRC_DIRS),$(wildcard $(sdir)/*.c))
170 SRCS_CPP := $(foreach sdir,$(SRC_DIRS),$(wildcard $(sdir)/*.cpp))
172 -OBJS_C := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRCS_C))
173 -OBJS_CPP := $(patsubst $(SRC_DIR)/%.cpp,$(OBJ_DIR)/%.o,$(SRCS_CPP))
174 +OBJS_C := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.obj,$(SRCS_C))
175 +OBJS_CPP := $(patsubst $(SRC_DIR)/%.cpp,$(OBJ_DIR)/%.obj,$(SRCS_CPP))
177 C_FLAGS := -fPIC
178 CXX_FLAGS := $(C_FLAGS)
179 @@ -43,10 +43,10 @@
180 vpath %.cpp $(SRC_DIRS)
182 define compile
183 -$1/%.o: %.c | $1
184 +$1/%.obj: %.c | $1
185 $(CC) -c $$(C_FLAGS) $$< -o $$@
187 -$1/%.o: %.cpp | $1
188 +$1/%.obj: %.cpp | $1
189 $(CXX) -c $$(CXX_FLAGS) $$< -o $$@
190 endef
192 @@ -75,11 +75,11 @@
193 -include $(addsuffix .d,$(basename $(OBJS_CPP)))
195 $(BIN_DIR)/cloop$(EXE_EXT): \
196 - $(OBJ_DIR)/cloop/Expr.o \
197 - $(OBJ_DIR)/cloop/Generator.o \
198 - $(OBJ_DIR)/cloop/Lexer.o \
199 - $(OBJ_DIR)/cloop/Parser.o \
200 - $(OBJ_DIR)/cloop/Main.o \
201 + $(OBJ_DIR)/cloop/Expr.obj \
202 + $(OBJ_DIR)/cloop/Generator.obj \
203 + $(OBJ_DIR)/cloop/Lexer.obj \
204 + $(OBJ_DIR)/cloop/Parser.obj \
205 + $(OBJ_DIR)/cloop/Main.obj \
206 | $(BIN_DIR)
208 $(LD) $^ -o $@
209 @@ -105,24 +105,24 @@
210 $(SRC_DIR)/tests/test1/CppTest.cpp: $(SRC_DIR)/tests/test1/CalcCppApi.h
212 $(BIN_DIR)/test1-c$(SHRLIB_EXT): \
213 - $(OBJ_DIR)/tests/test1/CalcCApi.o \
214 - $(OBJ_DIR)/tests/test1/CTest.o \
215 + $(OBJ_DIR)/tests/test1/CalcCApi.obj \
216 + $(OBJ_DIR)/tests/test1/CTest.obj \
218 $(LD) $^ -o $@
220 $(BIN_DIR)/test1-c$(EXE_EXT): \
221 - $(OBJ_DIR)/tests/test1/CalcCApi.o \
222 - $(OBJ_DIR)/tests/test1/CTest.o \
223 + $(OBJ_DIR)/tests/test1/CalcCApi.obj \
224 + $(OBJ_DIR)/tests/test1/CTest.obj \
226 $(LD) $^ -o $@
228 $(BIN_DIR)/test1-cpp$(SHRLIB_EXT): \
229 - $(OBJ_DIR)/tests/test1/CppTest.o \
230 + $(OBJ_DIR)/tests/test1/CppTest.obj \
232 $(LD) $^ -o $@
234 $(BIN_DIR)/test1-cpp$(EXE_EXT): \
235 - $(OBJ_DIR)/tests/test1/CppTest.o \
236 + $(OBJ_DIR)/tests/test1/CppTest.obj \
238 $(LD) $^ -o $@
240 --- src/include/gen/autoconfig_msvc.h.orig 2020-11-13 12:42:36.231813100 +0100
241 +++ src/include/gen/autoconfig_msvc.h 2020-11-13 12:43:12.669012900 +0100
242 @@ -68,7 +68,9 @@
243 #pragma warning(disable:4996) // 'identificator' was declared deprecated
246 +#ifndef WIN32_LEAN_AND_MEAN
247 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
248 +#endif
250 #ifdef _MSC_VER // don't know if this is useful for MinGW
251 #define NOATOM
252 diff -ur builds/posix/Makefile.in.examples builds/posix/Makefile.in.examples
253 --- builds/posix/Makefile.in.examples 2016-07-07 13:56:13.048235166 +0200
254 +++ builds/posix/Makefile.in.examples 2016-07-07 14:37:36.904301682 +0200
255 @@ -65,9 +65,9 @@
256 EXAMPLES_SRC= $(ROOT)/examples
259 -EMPBLD_Objects= $(EXAMPLES_DEST)/empbuild.o
260 +EMPBLD_Objects= $(EXAMPLES_DEST)/empbuild.$(OBJ_EXT)
262 -INTLBLD_Objects= $(EXAMPLES_DEST)/intlbld.o
263 +INTLBLD_Objects= $(EXAMPLES_DEST)/intlbld.$(OBJ_EXT)
265 INPUT_Files = empddl.sql empdml.sql indexoff.sql indexon.sql \
266 job.inp lang.inp proj.inp qtr.inp
267 @@ -172,3 +175,6 @@
269 $(EXAMPLES_DEST)/%.h: $(EXAMPLES_SRC)/common/%.h
270 $(CP) $^ $@
272 +$(EXAMPLES_DEST)/%.$(OBJ_EXT): $(EXAMPLES_DEST)/%.c
273 + $(CC) -c $(firstword $<) -Fo$@ $(WCFLAGS)
274 --- src/lock/lock.cpp.orig 2020-11-13 17:57:23.485241200 +0100
275 +++ src/lock/lock.cpp 2020-11-13 17:57:51.001010600 +0100
276 @@ -463,6 +463,7 @@
278 LockTableGuard guard(This, FB_FUNCTION, owner_offset);
280 +#undef SRQ_BASE
281 #define SRQ_BASE ((UCHAR*) This->m_sharedMemory->getHeader())
282 own* owner = (own*) SRQ_ABS_PTR(owner_offset);
283 if (!owner->own_count)
284 @@ -486,6 +487,7 @@
285 // released before destroying the lock owner. This is not strictly required,
286 // but it enforces the proper object lifetime discipline through the codebase.
287 fb_assert(SRQ_EMPTY(owner->own_requests));
288 +#undef SRQ_BASE
289 #define SRQ_BASE ((UCHAR*) m_sharedMemory->getHeader())
291 This->purge_owner(owner_offset, owner);
292 --- builds/posix/Makefile.in.plugins_examples.orig 2020-11-13 20:25:55.865485400 +0100
293 +++ builds/posix/Makefile.in.plugins_examples 2020-11-13 20:26:13.084191800 +0100
294 @@ -104,5 +104,5 @@
296 include $(ROOT)/gen/make.shared.targets
298 -Dependencies = $(AllObjects:.o=.d)
299 +Dependencies = $(AllObjects:.$(OBJ_EXT)=.d)
300 -include $(Dependencies)