HTC One uses a compass sensor to help you find the direction. When compass in not available the phone shows notification. Disable compass warning on HTC One by doing as follows:
1. Open "Settings" app
2. Go to "Location"
3. Unmark "Compass Warning" to disable notification (mark it again to enable the feature)