Skip to content

Commit 9944119

Browse files
authored
Merge pull request arduino#42 from Pigeo/patch-1
Remove warnings "-Wreorder" and "-Wunused-parameter"
2 parents 0a4c3b1 + 91543f4 commit 9944119

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/Wire/src/Wire.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21+
#pragma GCC diagnostic push
22+
#pragma GCC diagnostic ignored "-Wreorder"
23+
#pragma GCC diagnostic ignored "-Wunused-parameter"
24+
2125
extern "C" {
2226
#include <string.h>
2327
}
@@ -445,3 +449,5 @@ void WIRE1_ISR_HANDLER(void) {
445449
Wire1.onService();
446450
}
447451
#endif
452+
453+
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)