================
@@ -138,7 +138,7 @@ void f8(struct f8_s *s, int coin) {
 
 void f9() {
   int (*p_function) (char, char) = (int (*)(char, char))0x04040; // FIXME: 
warn at this initialization
-  p_function = (int (*)(char, char))0x04080; // expected-warning {{Using a 
fixed address is not portable}}
+  p_function = (int (*)(char, char))0x04080;
   // FIXME: there should be a warning from calling the function pointer with 
fixed address
   int x = (*p_function) ('x', 'y');
----------------
ziqingluo-90 wrote:

This PR LGTM as long as we do not forget about this issue.  

https://github.com/llvm/llvm-project/pull/182033
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to