Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

gcc-12 false positive warning #11

Closed
asarhaddon opened this issue Aug 30, 2022 · 1 comment
Closed

gcc-12 false positive warning #11

asarhaddon opened this issue Aug 30, 2022 · 1 comment

Comments

@asarhaddon
Copy link
Contributor

Hello.
This trivial patch silents a new GCC warning, which does not apply here because of the following Elaborate_All pragma.

--- a/src/sockets-multicast.adb                                                
+++ b/src/sockets-multicast.adb                                                
@@ -38,7 +38,9 @@                                                              
                                                                               
 with Ada.Exceptions;    use Ada.Exceptions;                                   
 with Interfaces.C;      use Interfaces.C;                                     
+pragma Warnings (Off, "unnecessary with of ancestor");                        
 with Sockets;                                                                 
+pragma Warnings (On, "unnecessary with of ancestor");                         
 pragma Elaborate_All (Sockets);                                               
 with Sockets.Constants; use Sockets.Constants;                                
 with Sockets.Naming;    use Sockets.Naming;                                   
@samueltardieu
Copy link
Owner

This is now fixed, thanks for the report (and sorry for the delay).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants