From 1293fc5d0ed288617096bfe9325b9a26d465fcf0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 26 Feb 2023 20:09:21 +0900 Subject: [PATCH] [qfcc] Fix incorrect build error in dealloc-warn2 It was dying due to an undefined symbol rather than the warning. --- tools/qfcc/test/dealloc-warn2.r | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/test/dealloc-warn2.r b/tools/qfcc/test/dealloc-warn2.r index 921db1566..533913da5 100644 --- a/tools/qfcc/test/dealloc-warn2.r +++ b/tools/qfcc/test/dealloc-warn2.r @@ -1,5 +1,9 @@ #pragma warn error +void __obj_exec_class (struct obj_module *msg) = #0; +id obj_msgSend_super (Super *class, SEL op, ...) = #0; +id obj_msgSend (Super *class, SEL op, ...) = #0; + @interface Object { Class isa; @@ -37,9 +41,6 @@ } @end -void __obj_exec_class (struct obj_module *msg) = #0; -id obj_msgSend_super (Super *class, SEL op, ...) = #0; - int main () { return 1; // test fails if compile succeeds (with -Werror)