mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Add a workaround for a GCC bug that generates spurious warnings for PSTR()
git-svn-id: https://arducopter.googlecode.com/svn/trunk@900 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
5560f4fcf9
commit
906239160d
@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
#include "include/menu.h"
|
#include "include/menu.h"
|
||||||
|
|
||||||
|
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
|
||||||
|
#undef PSTR
|
||||||
|
#define PSTR(s) (__extension__({static prog_char __c[] = (s); &__c[0];}))
|
||||||
|
|
||||||
// statics
|
// statics
|
||||||
char Menu::_inbuf[MENU_COMMANDLINE_MAX];
|
char Menu::_inbuf[MENU_COMMANDLINE_MAX];
|
||||||
Menu::arg Menu::_argv[MENU_ARGS_MAX + 1];
|
Menu::arg Menu::_argv[MENU_ARGS_MAX + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user